How can I get the IP of a computer that connects to my Pocket-PC ?
I need to see this IP in my Pocket-PC.
I work on VS2008 C# Windows-mobile
Thanks in advance
The ActiveSync connection itself is an RNDIS network, so the device and the PC have their own addresses in that network. You can resolve "ppp-peer" to get the address of the PC in that network, but it won't tell you anything about the other network connection(s) of the PC.
To get that information, you would have to put an app on the PC that the device would talk to, and that app would provide the info you're after.
Related
I wrote a windows service that detects usb drives plugged into the computer.I can get data such as computer IP address, transaction date, usb name, plugged and unplugged warning.My goal is to monitor usb movements on computers in the local network.For this I need to maintain a database on a server in the local network.I want this database to be updated when usb is plugged into any computer.How can I do this in a local network specific? What are the steps to follow?I am open to all suggestions.
I created a very simple application just to test out if I could create an app and then put it on another computer and hit the database on my other computer. I can enter data into my database on the computer that hosts the SQL Server just fine, but on my other computer I get the error message
Provider: Named pipes Provider, Error 40, could not open a connection to SQL Server
I've done everything on this link and googled and tried troubleshooting a ton. I am using SQL Server 2017 and VS 2017. Is it something wrong with the host computer or the other computer?
I tried troubleshooting with this link and after I got to the part about pinging the computer I can't ping the host computer using the other computer and using the other computer I can't ping the host computer. Both ways pinging wouldn't work, but the information on how to troubleshoot that wasn't very good.
I found something may be helpful from google...
According to users, if you're unable to ping other computers, the issue might be related to your network. To fix the problem, be sure that your PCs are properly connected and able to access the Internet. In addition, you might want to try restarting your network devices and check if that solves the issue
https://windowsreport.com/windows-10-unable-to-ping-other-computers/
For this you need to:
1. Enable access through firewall
2. Specify a port to connect to the computer hosting the database.
3. Make sure you are on the same network and can connect each other via localhost. If you cannot access via the default 127.0.0.1, try connecting by the ip address of the computer that is hosting your database.
If proper firewall access and ip config are not maintained, you will not be able to connect to the DB. It is appropriate running a REST server configuration on the host machine to allow access to the data through API requests rather than direct access to the SQL database.
Hi,
I had same problem while connecting sql server via developement
server.
In my case there was a problem with sql port (1433) blocked from
firewall.
Please do below given steps to check the same in your machine.
I hope it will work for u.
1 > open cmd and ping your server IP
for example
c:\System32>ping 192.168.1.45 -t
2> check sql port(1433) is open for your sql sever by using telnet
for example : telnet server IP port Number
c:\System32> telnet 192.168.1.45 1433
3 > if telenet failed... then use below command to open the port OR
contact your network team.
c:\System32> netsh firewall set portopening protocol = TCP port = 1433 name =
SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
I have coded a C# MVC Internet Application with Visual Studio 2013 Express for Web on my laptop. I can compile and connect to this application with the following web address in my laptops browser: localhost:22101/
I am wishing to connect to this address in an Android application that I have coded, but am having some trouble connecting to the localhost on my laptop. My laptop is connected with a USB cable.
I have tried the following:
Tried to connect to my laptops IPv4 address from ipconfig
(10.1.1.3)... no connection found.
Tried to connect to 10.0.2.2... no connection found
My laptop and cell phone are both connected to the same wireless router.
Is this possible? Can I please have some help with this?
Thanks in advance
The local development server doesn't respond to external requests.
You will need to run it on a full blown iis I'm afraid.
In developing my app I face the following problem:
I need to check if a remote data service (running on IIS) is available from the phone. This requires the phone to be on the same network (same IP range). How do can I check if the phone has wifi, and if the remote server is reachable?
Thanks in advance :)
How can I obtain the client MAC address with C# code of someone who visits my website?
You don't have access to the MAC, you don't need it. The MAC is only known to the router who the computer is connected to.
You can't get the MAC address of the sender, because you can't get mac address behind the first router on the path to the client.
To achieve that, you have to run some code on the client machine. MAC address isn't provoided in the internet. Store some cookie with a guid on the machine, that is not as disliked as running code on the client machine. ;-)
The best thing in my oppinion is to establish a user management on your website and give the peaople a chance to register / login. Then you can track everything around the user.