Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: I would like to create a list of sites for checking your IPv4 address  (Read 2208 times)

PatrickDickey

  • Newbie
  • *
  • Posts: 40

I'm making an autoupdater (I realize there's one already available, but I'm trying to get some programming experience).  One feature that I want to use is if the user decides to have it automatically update their endpoint, that it checks to see if their IP Address has changed.  I've set a minimum of 20 minutes for the updates (which is about 10 minutes longer than the highest minimum that I've seen on automated IP Address checkers so far), so it won't DoS anyone (hopefully).

My question is, what are some sites that provide just a barebones IPv4 address?  These are what I have so far:

http://www.whatismyip.com/automation/n09230945.asp
http://bot.whatismyipaddress.com
http://www.showmyip.com/simple/

 and I would like to get at least two more, if possible.  I also plan on posting the code from one site (their script for allowing you to put an IP Address checker on your site) up on my website.  If anyone has the actual javascript for getting the users' IP Address, that would be preferable also.

Thanks for any information, and have a great day:)
Patrick.
Logged

snarked

  • Hero Member
  • *****
  • Posts: 766
Re: I would like to create a list of sites for checking your IPv4 address
« Reply #1 on: September 02, 2010, 12:28:03 PM »

My generic homepages usually provide such - both hostname and IP address.  Here are my page snippets:

Using Apache's server-side includes:
Quote
<TABLE ALIGN=LEFT>
<TR><TD>Time</TD>
    <TD> | </TD>
    <TD><!--#echo var="DATE_GMT" --></TD>
</TR><TR>
    <TD>IP Address </TD>
    <TD> | </TD>
    <TD><!--#echo var="REMOTE_ADDR" --> (Port <!--#echo var="REMOTE_PORT" -->)</TD>
</TR><TR><!--#if expr="'$REMOTE_HOST' != ''" -->
    <TD>Host Name</TD>
    <TD> | </TD>
    <TD><!--#echo var="REMOTE_HOST" --></TD>
</TR><TR><!--#endif -->
    <TD>JavaScript </TD>
    <TD> | </TD>
    <TD><SCRIPT LANGUAGE=JAVASCRIPT><!--
        document.write('Enabled'); // --></SCRIPT>
        <NOSCRIPT>Disabled</NOSCRIPT></TD>
</TR></TABLE>

Using PHP:
Quote
<?PHP echo($_SERVER['REMOTE_ADDR']); if ($_SERVER['REMOTE_HOST'])
printf(" &nbsp; | &nbsp; %s", $_SERVER['REMOTE_HOST']); ?>
Note the use of web server CGI variables -- and that they are the same variables regardless of the scripting language used.
Logged