How to get IP which is assigned by ISP
Dear IT friends,
How to get the IP address which is assinged by the ISP?
actually I am in the Network. we are using Router. ISP assinged IP will be assigned to the router. In this case I am creating one chat application like yahoo messenger. which IP address I have to sent coz ISP IP is in router but I have local IP... how to do that...
anyone please help me ASAP...
Thanks and Regards
Nagarajan
Re: How to get IP which is assigned by ISP
It's not visible for local computer, you need to take help of some remote computer which can get the IP of connected socket.
Following samples take advantage that technique,
http://www.codeproject.com/internet/getipnr.asp
http://www.planet-source-code.com/vb...36208&lngWId=1
Re: How to get IP which is assigned by ISP
Quote:
Originally Posted by Krishnaa
Thank you Krishnaa...
Do you have any vb.net coding for that....
if you r in LAN the external IP will be assigned to the router... then how to get my external address.. please explain this please....
nagarajan
Re: How to get IP which is assigned by ISP
Quote:
Originally Posted by alwaysnaga
Thank you Krishnaa...
Do you have any vb.net coding for that....
if you r in LAN the external IP will be assigned to the router... then how to get my external address.. please explain this please....
nagarajan
thats what is explained in the articles on those links. As I said earlier the technique is to use some remote interface (web interface etc.) to get you your external IP. The remote computers can read your external ip using getpeername on the socket which is connected bet. you and remote computer.