CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    27

    Question 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

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    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
    Last edited by Krishnaa; September 14th, 2006 at 04:13 AM.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Sep 2006
    Posts
    27

    Question Re: How to get IP which is assigned by ISP

    Quote Originally Posted by Krishnaa
    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

    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

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    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.
    Regards,
    Ramkrishna Pawar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured