Solved

Looking for a client IP from server side

Posted on 2000-04-18
1
164 Views
Last Modified: 2010-03-05
   Is there any perl module that lets me get a client's IP that is logged into my server.  Of most benefit would be a way to look at the layer 3 (return IP) of the IP header.

Thanks for any help,

Phil Lamey
0
Comment
Question by:syu2
1 Comment
 
LVL 16

Accepted Solution

by:
maneshr earned 50 total points
ID: 2727933
you should be able to get the client's IP using the REMOTE_ADDR environment variable.

print $ENV{'REMOTE_ADDR'};
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PERL get the value for query 4 151
hard perl script 16 158
Move Function in Perl Script 2 68
Get a Perl script to return content from a module 7 80
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question