Marhan
Hm, for me, a network interface has an ip address, not a user.
Frank
--
Dipl.-Inform. Frank Seitz; http://www.fseitz.de/
Anwendungen für Ihr Internet und Intranet
Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel
"Frank Seitz" <devnu...@web.de> wrote in message
news:63f2svF...@mid.individual.net...
http://kuerzer.de/cookbook_receipe17.7
Google: "identifying the other end of a socket"
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{REMOTE_ADDR}.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
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
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 ------ u...@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 ---------
Hi,
(\d)\.(\d)\.(\d)\.(\d)
represents the ipaddress.
Bye
vikram
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
JWK> vikram wrote:
>> On Mar 8, 1:51 pm, "Marthan" <mart...@csv.t-portal.cc> wrote:
>>> how to read user's IP adress with Perl?
>>
>> (\d)\.(\d)\.(\d)\.(\d)
>>
>> represents the ipaddress.
JWK> 66.94.234.13 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
counter-example.
Ted