Get the IP of Your Web Site

Posted by Johan Cyprich on 22 Sep 2008 | Tagged as: Programming

You may need the IP of your web site for various purposes, such as using it to connect to your web site with FTP or SSH. There are a few utilities which can display your IP, such as the ShowIP extension for Firefox. You can also create a very simple web site which will show the IP of your web site.

Copy and paste the code below into a file called ip.php and save it in the root folder of your web site. Change the $site variable to match the domain of your web site, and then open this page in your web browser, i.e. http://www.guardiansoftware.net/ip.php.

The IP of your web site will be revealed.

===[ ip.php ]==========================

<html>
<head>
<title>Display IP</title>
</head>

<body>
<?php

$site = ‘www.guardiansoftware.net‘;
$ip = gethostbyname ($site);

echo “<p>IP: $ip</p>”;

?>
</body>
</html>



Tweet This Tweet This Post!

Related posts:
    Who Is Hosting This?
    SEO Is Not Enough
    FTP Problems With Internet Explorer 7
    Promoting a Business with a Blog

Share this post:

del.icio.us:Get the IP of Your Web Site digg:Get the IP of Your Web Site spurl:Get the IP of Your Web Site wists:Get the IP of Your Web Site simpy:Get the IP of Your Web Site newsvine:Get the IP of Your Web Site blinklist:Get the IP of Your Web Site furl:Get the IP of Your Web Site reddit:Get the IP of Your Web Site fark:Get the IP of Your Web Site blogmarks:Get the IP of Your Web Site Y!:Get the IP of Your Web Site smarking:Get the IP of Your Web Site magnolia:Get the IP of Your Web Site segnalo:Get the IP of Your Web Site gifttagging:Get the IP of Your Web Site

Follow Me:

Did you find this post interesting and useful? You can keep up to date on this blog by subscribing to my RSS feed, or you can have new posts sent to you by e-mail. You can also follow me on Twitter.


Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply

CommentLuv badge