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, 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 ?>


Related Posts

Blog Traffic Exchange Related Posts
  • Your own wikipedia.... I've made quite a bit of use out of the wikipedia in recent years. I know it has it's flaws (I've run across some first hand), but I've found typos in textbooks as well. However that doesn't mean that it can't be a very useful reference. In fact, in some......
  • Mythtv remote frontend So, when I did the laptop upgrade I formated the root partition which means that working mythtv frontend was erased and it had to be set up from scratch. I had been running version 0.16 of mythtv on all the systems, but finding rpms for that older version looked challenging,......
  • More postfix spam blocking.... Postfix has a NUMBER of tools for rejecting unwanted messages before they get in the door and waste your CPU time on deciding "hey this mail is spam". Up until recently I've mostly used the relays.ordb.org check (which in the last couple months has now gone defunct.) When we started......
Blog Traffic Exchange Related Websites
  • How Google Adsense Detects Invalid Clicks? Hi, I just came to know how Google Adsense detects invalid clicks. I hope this is the very good information to avoid your Adsense websites from invalid clicks. IP Address: If the Adsense click is originated from the same IP Address as the one used for accessing your Adsense account,......
  • Using MySQL In A Hosting Environment MySQL is a heavy-duty database server. Used with various software languages, most notably PHP, and part of the LAMP family (which is comprised of Linux, Apache, MySQL, and PHP), Whether it's a customer relations management list or medical records, any data you have that needs storing, is stored on a......
  • Find the physical location of an IP address There are lots of ways to do this, but I have a couple of favorite sites that show you the location and other details about an IP address. Geobytes gives you location information including latitude and longitude, time zone from GMT, country, region, city and a Google map of the......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site