|
General Details
|
|
Perl
|
|
Posted 3.42 Years Ago
|
|
609 Views
|
|
Received 0 Ratings
|
|
IPGrab
Description
Find out your IP quick and easy!
Technical
Need activestate for perl installed.
Source Code
Comments
| Please login to post comments. |
|
|
Returns your ip.
As in the ip that is the same between the both.
|
|
|
OK... lets try it this way
You are on home computer and are running this on your home server which has the same IP.. so it will return the same one.. ok on this one?
What I am asking is
You have deployed this to another server.. You hit the page with your code in it?.. Does it make the request as you (so returning your IP) or does it make the request as the server(thus returning the servers IP)?
Basically I am asking in what context does this run as?
|
|
|
Well i am not really understadning what you are saying,
But what i can say is.
When you go to that websiite through your browser, it gives you the same IP as if you were to use this script
|
|
|
I am asking if your code does this our not when it does a get request to that page, not if I do it through my browser
|
|
|
Go on the site and check.
|
|
|
Ok.. does it return the servers ip or the users ip? On your local server, it will return your IP of course but on a remote server or you coming from a remote ip what does it return?
|
|
|
This returns you ip from whatsmyip.org. As if you are going there, but saves you going there it tells you.
|
|
|
Just a matter of interest, when you run this, will this run as the server or as the user who made the request??
In .NET its a simple Request.UserHostAddress and that returns the UsersIP
|
More "Perl" Source Codes By This Author
Recently Posted "Perl" Source Codes
Recently Rated "Perl" Source Codes
|