Maker tech hub — AI · 3D print · Pi · ESP32 · plus the classic tech archive.

Free ESP32 kit · Books · Network Ninja · Archive

Classic tech archive. From the original averyjparker.com tech blog — historical context; pair with modern guides where noted. Full archive · Maker projects · Network Ninja

Classic tip · Classic

How do I find my IP address

This is one that can be handy from time to time, trying to find your ip address. If you're on a lan there aren't too many ways to find your public ip within the operating systems software. However, u…

Written by

Avery J. Parker

IT veteran, maker educator, and author of Network Ninja, 3D Printing Mastery, and AI Workflow Mastery. Business IT: Diversified Tech Solutions.

This is one that can be handy from time to time, trying to find your ip address. If you're on a lan there aren't too many ways to find your public ip within the operating systems software. However, under Windows if you go to, Start, Run and then type cmd and press enter you'll get a command prompt from which you can type ipconfig and see the ip address for each network interface. One is the loopback interface and should read 127.0.0.1 Under Linux the same list can be acheived by running /sbin/ifconfig from the command prompt. It should give roughly the same set of information on each network interface. But these won't tell you your public IP address unless you're directly connected to the internet. How do you find that if you're behind a firewall or within a LAN? There are several web pages which can help. One, I've put up here at averyjparker.com My IP check page I've made it plain text so that it's easy for a script to parse the contents. It tells, the public IP address, User agent (web browser), and your LAN IP address if there is one. There are also other sites, like whatsmyipaddress.com and others that a google search might reveal. The page I use is basically php and very simple... If you're interested in the code I've included it below. < ?php $IP=$_SERVER['REMOTE_ADDR']; $USERAGENT=$_SERVER['HTTP_USER_AGENT']; $FORWARDEDFOR=$_SERVER['HTTP_X_FORWARDED_FOR']; ?>
Your public ip address is < ?php echo $IP ?>
Your browser is < ?php echo $USERAGENT ?>
If you're behind a firewall, this may be your internal IP address (LAN, not public) < ?php echo $FORWARDEDFOR ?>