Forum Moderators: coopster

Message Too Old, No Replies

Displaying server IP

         

keiths

11:48 pm on Jul 9, 2008 (gmt 0)

10+ Year Member




System: The following message was cut out of thread at: http://www.webmasterworld.com/php/3691649.htm [webmasterworld.com] by eelixduppy - 8:24 pm on July 9, 2008 (est -4)


I've been hosting my site for some time now and am not willing to pay for a static IP. The problem is that I like to host multiplayer games from my server. How might I display my dynamic "internet" IP on my own website?

eelixduppy

12:31 am on Jul 10, 2008 (gmt 0)



Hello and Welcome to WebmasterWorld!

You should be able to echo the server address to the page using PHP:


echo 'Our server IP:' . $_SERVER['SERVER_ADDR'];