How to find the remote ip address?

14,636

If you are at home behind a typical ADSL modem then this is your situation:

enter image description here

IP1 through IP5 are the IP numbers in use.

IP5 on the outside of your modem is the IP you use to access the internet. This is the IP seen by the rest of the world.

If you are behind one of the PCs and use ifconfig or Ipconfig then you are looking at the internal network and you will see one of the internally assigned IPs (usually 192.168/24).

If you want to see what IP the rest of the world sees you will have to log into the ADSL router and issue the ipconfig command on that. How you do this depends on your router. E.g. if it runs tomatoe you can just ssh into it and use ifconfig. For other firmwares you might need to access the modems webpage and find the rest setting.

Share:
14,636

Related videos on Youtube

Jay
Author by

Jay

rookie dba

Updated on September 18, 2022

Comments

  • Jay
    Jay almost 2 years

    Possible Duplicate:
    Command Prompt - Command for external IP

    ipconfig (Windows) or ifconfig (Unix) only seems to show the IP address for the local area networks. Just wondering if there's any way to determine the external (remote) IP address for the machine in the command line? I know there's tons of sites like What's My IP that show the remote IP address.

    • spexy
      spexy over 11 years
      Please check some solutions given [A similar old question][1] [1]: superuser.com/questions/165986/…
    • Jay
      Jay over 11 years
      Thanks @spexygeek, i could find that one in the list of related questions so i decided to give it a go.
  • ganesh
    ganesh over 11 years
    Heh, Tried to post ASCII, but the < > in the image got in the way. Tried Pre tags. Failed. Solved it in an very ugly way (the image).
  • Jay
    Jay over 11 years
    I see! So as i am on office net right now, the IP address displayed by WhatsMyIP is the address of the router? Not my PC
  • ganesh
    ganesh over 11 years
    Home office: Yes, most likely. At work: ditto. Mind you, this is no guarantee. I did put 'most' in 'most ADSL providers'. There are exceptions, but usually you have to pay your provider a lot more to get a nice set of IP numbers so you can hook things up to the internet without the kludge called NAT.