Build your own DIY IPChicken alternative

ipchickenIP Chicken ( 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 (, or–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:

More detailed host address:

Display browser info:
Mozilla/5.0 (compatible; AhrefsSiteAudit/6.1; +
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


1 comment

Leave Comment

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