Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
otoom
Ant
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
Perl
Posted 3.42 Years Ago
609 Views
Received 0 Ratings
More Codes By This Author
Guessing Game
Even or Odd
Even or Odd
Head First PHP And mySQL...
CreateSquare
Articles By This Author
Quick Threading Tutorial...
First look at C
Cheat Sheet Pack
[PHP] How to make a log f...
HTML Cheat Sheet!

IPGrab


Description
Find out your IP quick and easy!
Technical
Need activestate for perl installed.
Source Code
Comments
Please login to post comments.
 
otoom     Posted 3.41 Years Ago
 
 
Returns your ip.

As in the ip that is the same between the both.
 
Ginger     Posted 3.42 Years Ago
 
 
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?
 
otoom     Posted 3.42 Years Ago
 
 
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
 
Ginger     Posted 3.42 Years Ago
 
 
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
 
otoom     Posted 3.42 Years Ago
 
 
Go on the site and check.
 
Ginger     Posted 3.42 Years Ago
 
 
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?
 
otoom     Posted 3.42 Years Ago
 
 
This returns you ip from whatsmyip.org. As if you are going there, but saves you
going there it tells you.
 
Ginger     Posted 3.42 Years Ago
 
 
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
Page 1 of 1
More "Perl" Source Codes By This Author
Recently Posted "Perl" Source Codes
Recently Rated "Perl" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.20 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved