Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Viewing an IP

by Sidhekin (Priest)
on Nov 26, 2006 at 10:41 UTC ( #586087=note: print w/replies, xml ) Need Help??


in reply to Viewing an IP

The REMOTE_ADDR environment variable is something that (some?) webservers set up for CGI. But you're not using CGI, you're using ASP.

I don't remember PerlScript too well, but I think you want something like so:

<%@ LANGUAGE = PerlScript %> <html> <body> <% $Response->Write( $Request->Remote_Host ); %> </body> </html>

Update: ... or was it $Request->ServerVariables("REMOTE_HOST"), perhaps? Seriously, it's been years ... but you should get the idea.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Replies are listed 'Best First'.
Re^2: Viewing an IP
by Namudril (Initiate) on Nov 26, 2006 at 11:05 UTC
    Thanks, Sidhekin!
    your skills are not lost, even through the years (-:
    $Response->Write( $Request->Remote_Host );
    works right

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://586087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2018-09-20 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (180 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!