|
Posted by Gunnar Hjalmarsson on March 8, 2008, 5:17 am
Please log in for more thread options
Marthan wrote:
> OK I want read: IP Address properties of user's Internet Connection
If you by "read" mean "find out what it is", and assuming you run a CGI
script, you may be looking for the environment variable $ENV.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
|
Posted by Joe Smith on March 9, 2008, 8:07 am
Please log in for more thread options
Marthan wrote:
> OK I want read: IP Address properties of user's Internet Connection
What kind of internet connection?
There are different answers, depending on how the connection comes
in to your server. HTTP, FTP, TELNET, SSH, BitTorrent, Skype, etc, etc, etc.
-Joe
|
|
Posted by Uri Guttman on March 9, 2008, 9:27 am
Please log in for more thread options
JS> Marthan wrote:
>> OK I want read: IP Address properties of user's Internet Connection
JS> What kind of internet connection?
JS> There are different answers, depending on how the connection comes
JS> in to your server. HTTP, FTP, TELNET, SSH, BitTorrent, Skype,
JS> etc, etc, etc.
actually from the tcp/ip perspective those are all the exact same
thing. sockets are sockets and you can get all the IP info you want
about a peer socket. the difference you claim is in the data protocol
that runs on top of the socket layer (including any encryption).
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Architecture, Development, Training, Support, Code Review ------
----------- Search or Offer Perl Jobs ----- http://jobs.perl.org ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
|
|
Posted by vikram on March 10, 2008, 1:33 am
Please log in for more thread options > how to read user's IP adress with Perl?
>
> Marhan
Hi,
(\d)\.(\d)\.(\d)\.(\d)
represents the ipaddress.
Bye
vikram
|
|
Posted by John W. Krahn on March 10, 2008, 9:03 am
Please log in for more thread options vikram wrote:
>> how to read user's IP adress with Perl?
>
> (\d)\.(\d)\.(\d)\.(\d)
>
> represents the ipaddress.
66.94.234.13 is a valid IP address which won't be matched by that pattern.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
|
| Similar Threads | Posted | | FAQ 9.19: How do I return the user's mail address? | November 16, 2004, 12:03 pm |
| FAQ 9.19: How do I return the user's mail address? | December 30, 2004, 12:03 am |
| FAQ 9.19 How do I return the user's mail address? | March 24, 2005, 12:03 am |
| FAQ 9.19 How do I return the user's mail address? | June 2, 2005, 11:03 pm |
| FAQ 9.19 How do I return the user's mail address? | September 14, 2005, 4:03 pm |
| FAQ 9.19 How do I return the user's mail address? | November 3, 2005, 11:03 pm |
| Reading another user's Outlook calendar? | February 22, 2006, 4:28 pm |
| FAQ 9.19 How do I return the user's mail address? | September 13, 2006, 3:03 am |
| FAQ 9.19 How do I return the user's mail address? | April 2, 2007, 9:03 am |
| FAQ 9.19 How do I return the user's mail address? | June 18, 2007, 3:03 am |
|