[racket] getting remote ip address

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue May 14 20:00:46 EDT 2013

You want the tcp-addresses function

http://docs.racket-lang.org/reference/tcp.html?q=addresses#%28def._%28%28lib._racket%2Ftcp..rkt%29._tcp-addresses%29%29

Jay

On Tue, May 14, 2013 at 12:07 PM, prad <prad at towardsfreedom.com> wrote:
> in php i can do this:
> $ip=$_SERVER['REMOTE_ADDR'];
>
> to find out what the client ip address is.
>
> how do i do it in racket?
>
> i looked at request-client-ip provided by
> web-server/http/request-structs
> but that seems to require i run the racket webserver.
>
>
> --
> in friendship,
> prad
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.