depending on the webserver, you may need $ENV{REMOTE_ADDR} instead. best to dump out all of %ENV and pick what you want. Gregg Casillo wrote: > > This simple CGI script should do the trick: > > #!/usr/bin/perl > > print "Content-type: text/html\n\n"; > print "Your IP Address = $ENV{REMOTE_HOST}"; -- Steve Lane <sml at zfx.com>