Build your own DIY IPChicken alternative

Spread the love...


ipchickenIP Chicken (www.ipchicken.com) is a website that will display the IP address of your computer, tablet or phone. While it is very popular, there are actually several useful websites out there that show you your IP address. This can come in handy when you are behind a firewall or router, and need to know the outside, NAT’d IP address. Just browse to the site (www.ipweasel.com, www.ipkitten.com or www.ipchicken.com–pick your animal, there are lots out there) and up pops your ip address and browser information. Did you ever wonder how that works and if you  could ever build a cool website like that!??  Well, it’s a basic PHP script that pulls the information from your client when you are using your browser.

 

Here’s an example:

Display IP address:
34.236.216.93

More detailed host address:
ec2-34-236-216-93.compute-1.amazonaws.com

Display browser info:
CCBot/2.0 (https://commoncrawl.org/faq/)
Where you came from (if you clicked on a link to get here):
Page was directly requested

________________________________________________________________

sweet, huh?
You can put some very simple code in your html site (or in this case WordPress) that makes your visitors IP address and information show on the page or post.
I used a WordPress plugin called “Shortcut Exec PHP” to allow the code to run in a post. You can also display it in a wordpress widget, but it requires an additional plugin.
Put the following code in your post:

ip address code

Here is a txt version for copying and pasting

Of course, you will want to tweak the code, add some relevant content  and make the site look somewhat interesting, but its a good start.  IP Chicken has owned the IP address finding market for a long time, and now that even Google will tell you your IP address (just type “ip address” in your search bar) the site may be losing some of it’s popularity.  Even so it would be hard to compete with the name-brand, but it’s a fun nerdy project anyway!

Find your IP address

sources: www.ipchicken.com


Spread the love...

1 comment for “Build your own DIY IPChicken alternative

  1. February 10, 2016 at 7:39 am

    THX that’s a great anrwse!

Leave a Reply

Your email address will not be published. Required fields are marked *