Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: phranque
Littleman... tried your site and got a really peculiar result. It printed out the IP number I usually have, but not the one that WebmasterWorld or winipcfg show that I have tonight. How can this be?
I just cleared my cookies on WmW again and ran winipcfg to compare IP numbers, and they showed different numbers. The "IP Configuration" box that winipcfg brings up says it's giving me Ethernet Adapter Information... and again, I don't thing I have an Ethernet adapter. What am I looking at? This is not my area of expertise.
It could also be that your ISP has some type of funky caching system that is coming to hit some of the pages from a different address than you, and then is serving them to you. Singe out, go to the home page and look at your IP. Then hit reload and see if it changes. If it does, then that is probably what is happening.
For me the first few hops are from my system to my router then to the ISP as below:
Tracing route to www.webmasterworld.com [188.8.131.52]
over a maximum of 30 hops:
1 <10 ms <10 ms <10 ms 192.168.123.254
2 50 ms 30 ms 40 ms 10.252.66.1
3 80 ms 60 ms 50 ms XXX-XX-XX-XX-XX.az.sprintbbd.net [XX.XXX.XXX.XX]
4 51 ms 50 ms 30 ms 10.254.3.1
5 * 70 ms 31 ms host-217.genuity.net [184.108.40.206]
6 30 ms 50 ms 30 ms gigabitethernet5-0.phxcolo-dbe1.bbnplanet.net [1
In this trace the first hop is to my router, 192.168.123.XXX usually indicates a device providing DHCP addressing. The second hop is to my ISP's router, the third is to the ISP's system. Next a router, then a concentrator, and then onto the backbone.
NeoTrace is a visual trace route program that does DNS lookups, whois lookups, etc, all in one package and makes seeing and understanding these relations quite a bit easier. Check out the trial version here [neoworx.com].
Not that I know of... This is a home office dial-up connection.
>>Do you have dsl or a cable modem?<<
Plain vanilla ISP dial-up...
I'm using Windows 95b... I've downloaded NeoTrace Lite and will install it once I deliver a project I'm working on... I'm profoundly conservative when it comes to installing new software when I have a deadline.
And a PS - Just reset my cookies as I was leaving the board, and my WmW reported IP number and winpcfg number agree.
If I'm close to understanding your question, this is a very basic script function and you're unlikely to find a script that simply grabs and displays an IP. Most scripts will do much more with the IP, like logging it to a file or see if it's on a "banned list" or logging banned IPs and allowing access to non-banned or...
How are we doing so far? Anywhere close to answering your question?
I'm trying explain that the portion of the script at WebmasterWorld that displays the IP you connect from, is a very small subroutine of this very large and complex Perl script that is WebmasterWorld. The WebmasterWorld Perl script is run on a Unix host.
You want a script to do something, is that simply to read and display a visitor's IP address? You still haven't made that clear...
If you plan to incorporate your script into a web page, it will need to be run from your web host. What scripting languages does your host support? Some of the more common languages on Unix powered hosts are Perl, PHP and Java. If you're hosted on an MS server, ASP is the most commonly supported scripting language. If you're using a Cold Fusion server, Cold Fusion has it's own scripting language. What type of host is the site on that will run the script and what languages does the host support?
I'm not trying to be difficult, simply making several points:
1. You are asking for a program (script) but not saying specifically what the program should do.
2. A program operates in a specific environment (you can't run Mac applications on a Windows based PC or vice versa, for example) and you haven't provided details about YOUR environment.
3. A script that simply displays a visitors IP address is so simple and basic that it is unlikely to be found by itself. It will usually be a small part of a much larger more sophisticated script.
Unfortunately, unless you can ask better, more specific questions, the answers we can provide are limited.
Here are some places where various scripts can be found. You may find what you're looking for at one of these: