Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how to read user's IP adress with Perl?
March 8, 2008, 8:51 am
rate this thread
Re: OK I want read: IP Address properties of user's Internet Connection
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 Guttman ------ email@example.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 ---------
Re: how to read user's IP adress with Perl?
JWK> vikram wrote:
JWK> 22.214.171.124 is a valid IP address which won't be matched by that pattern.
You should at least mention Regexp::Common if you're correcting an IP
address pattern. I know the original question was not about that, but
it's still better to make a useful reply than just to point out a
- » FAQ 5.2 How do I change, delete, or insert a line in a file, or append to the beginning of...
- — Previous thread in » PERL Discussions