Click here to Skip to main content
16,019,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Thanks in advance

Is there anyway to get External IP Address of client in vb.net without using
http://automation.whatismyip.com ? , I am developing a FTP program and on
client side i want to get the IP address of the client.

Has done research but most of them suggest whatismyip.
Posted

1 solution

The only way to get the internet IP address of a machine is to talk to something on the otherside of the router (or whatever) that connects you to the internet. The reason being that on "your" side of it, your IP address is a local one: 192.168.0.2 for example. Only the equipment one the other side gets the IP address, which is not specific to your PC - it is specific to your internet connection not your PC, and may be shared if there are two PC connected to the same router, for example. The router redirects messages, and uses the correct internal / external address as appropriate.

So you need to talk to whatsmyIP or a similar external service to find out what the value is!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900