face IP : Java Glossary

go to home page F words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
face IP
When you use a router on a LAN, the outside world sees you as the external face IP of your router, not the IP of your machine. There are five IPs to be concerned with. working from the outside in:
  1. The IP of the computer somewhere on the net that does DNS look up for you, e.g. 64.59.160.13.
  2. The IP of the computer your router talks directly to at the ISP headquarters. This is sometimes called the Gateway IP, e.g. 24.68.232.1 .
  3. face IP e.g. 38.107.191.109, the IP your router presents to the outside world. This is how various websites know you (and anyone else on your LAN accessing the Internet). This is sometimes called your public IP, but that usually refers to a static IP, more or less permanently assigned, where a face IP can change daily. Since this is the IP of your entire LAN to the outside world, it is sometimes called the WAN IP.
  4. The internal IP of your router e.g. 192.168.2.1 on the LAN. Just to confuse you, this is also sometimes called the gateway IP. The confusion arises because in the old days computers connected directly to the gateway computer belonging to the ISP, not indirectly via a LAN-based router pretending to be such a gateway computer.
  5. The local internal IP of your computer on the LAN, e.g. 92.168.2.2.
To find out your face IP, the IP that outside world (beyond your firewall) thinks your IP and domain name is, try any of the following:
Ways of Finding Your Face IP
Logo Link Notes
moose Your face IP:[38.107.191.109] Your face IP is displayed at the bottom of every page of this website. I do this with SSI.
IPChicken logo IPchicken.com tells your face ip, and which ports you have open. They also tell you your face name, e.g. your URL on the web, possibly temporarily assigned for your connection. It might look something like this S010609991195576dda.gv.shawcable.net or d207-81-138-97.bchsia.telus.net That is not my real one. I don’t want to encourage hackers.
Dyndns logo checkip.dyndns.org:8245/ Offers many other services as well.
WhatIsMyIPAddress logo whatismyipaddress.com has many annoying ads you must close to discover the answer.
In a Servlet you can use javax.servlet. ServletRequest. getRemotePort().
The face ip is different from the IP of your computer on the LAN. An IP of a computer on a LAN is typically something like 192.168.2.7. The router has two ips, one it talks to the computers on the lan often 192.168.2.1 and one it uses to talk to the outside world, dynamically assigned by the ISP using DHCP.

To find out your internal LAN IP, on windows run ipconfig.exe. It will always have the form 192.168.2. x.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/faceip.html J:\mindprod\jgloss\faceip.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.109]
You are visitor number 11,745.