| Joined: Mar 2002 Posts: 217 Member | OP Member Joined: Mar 2002 Posts: 217 | I feel like a punk having to ask this, but how do you find out the ip address of a machine runnig xp? I tried the old fashioned 'winipcfg' but it doesn't work. | | | | Joined: Mar 2002 Posts: 217 Member | OP Member Joined: Mar 2002 Posts: 217 | Okay scratch that - Somehow I figured it myself. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Windows XP doens't come standard with some of the tools included in previous verions. You'll have to download WinIPCFG elsewhere, but it'll run perfectly on your box, or you can go to www.whatismyip.com , there are tons of ways.. | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | hey that site is pretty cool. Dunno if you've noticed, but sometimes I connect to the IRC and leave soon after. It's when I'm at work and I wanna know the outside IP for the network I'm connecting from. but that site is more convenient than having to connect via telnet to IRC and negotiating logging in and whois'ing myself. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Lol yeh, I have noticed, just throught that you chose the wrong server or something... heh i use that site when I'm bored and need to be sure my netowrk is up or for testing proxys lol...
Its rather nice concidering... But I tend to always have winipcfg installed so that i can check local addresses since i tend to be networking... | | | | Joined: Mar 2002 Posts: 599 UGN's Resident Homo | UGN's Resident Homo Joined: Mar 2002 Posts: 599 | thats sites convenient, however, just by looking at the source i fail to see how it determines your ip. just wondering
"It's better to burn out, than to fade away."
| | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | um, backend processing. The script that drives that site could be CGI. I haven't looked too closely at it to be sure of the method. | | | | Joined: Mar 2002 Posts: 1,136 UGN Elite Poster | UGN Elite Poster Joined: Mar 2002 Posts: 1,136 | Right, there's a program on the server that figures out your IP then sends some HTML. None of the logic is shown because it's all on the other computer. | | | | Joined: Mar 2002 Posts: 185 Member | Member Joined: Mar 2002 Posts: 185 | It could be PHP, it's really easy in PHP. I made a script once that logged the IP of everyone who came to the site. It was like 3 lines long and I could just as easily display the IP. Just search under the functions section on www.php.net if you really want to find the exact code. | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | Here's my perl script which logged everything (date, IP, domain, and browser type/version) in a HTML formatted file. Just add a SSI exec line to your home page and it's a go.
#!/usr/local/bin/perl
$Date = `date +"%D %T"`; chop ($Date);
open (LOG, ">>/home/nightfir/log.html"); print LOG "\n<TR><TD Nowrap><FONT Color=ff0000><B>$Date</B></FONT></TD><TD Nowrap><FONT Color=ff0000><B>$ENV{'REMOTE_ADDR'}</B></FONT></TD><TD Nowrap><FONT Color=ff0000><B>$ENV{'REMOTE_HOST'}</B></FONT></TD><TD Nowrap><FONT Color=ff0000><B>$ENV{'HTTP_USER_AGENT'}</B></FONT></TD></TR>"; close (LOG);
exit; | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | They could use SSI to call the information to the page from another file... | | | | Joined: Mar 2002 Posts: 599 UGN's Resident Homo | UGN's Resident Homo Joined: Mar 2002 Posts: 599 | thanks for the explanation...
"It's better to burn out, than to fade away."
| | |
Posts: 860 Joined: March 2002
| | Forums41 Topics33,840 Posts68,858 Average Daily Posts0 | Members2,176 Most Online3,253 Jan 13th, 2020 | | | | | | | | | | | Doom 3 by Cyrez - 09/11/14 08:58 PM
| | | | | | | | | | | | | | | | | | |