Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

  #1  
Old 08-20-2002, 09:37 PM
Aoshi
 
Posts: n/a
Default IP Address

I was wondering if anyone knows of a java applet or a program or anything that i could use to throw on a webpage and have it tell me the ip address of that computer, (not the one that i am on). I would like this so that i dont have to get someone to go to pingmeplease.com or any kind of webswite like that and tell me the ip of my file server is. Instead i would be able to go to my web site and it tell me.
Reply With Quote
  #2  
Old 08-20-2002, 11:33 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default

You could use something like this...

Code:
<?
print "<html>\n";
print "<head><title>Your IP Address</title></head>\n";
print "<body bgcolor=#FFFFFF>\n";
print "<h2 align=center>Computer Information</h2>\n";
print "<hr noshade width=50%>\n";
print "<table border=0 cellpadding=2 cellspacing=2 align=center>\n";
print "<tr>\n";
print "  <td align=right>IP Address:\n";
print "  <td align=left>$REMOTE_ADDR</td>\n";
print "</tr>\n<tr>\n";
print "  <td align=right>Hostname:</td>\n";
print "  <td align=left>" . gethostbyaddr($REMOTE_ADDR) . "</td>\n";
print "</tr>\n</table>\n";
print "<hr noshade width=50%>\n";
print "</body>\n";
print "</html>\n";
?>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:45 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.