You can get hold of the HttpServletRequest in a Java class when accessed
via RemoteObject by using flashgateway.Gateway.getHttpRequest().

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/commo
n/html/wwhelp.htm?context=Flex_Documentation&file=00002247.htm


Once you have the request, you can call methods on it to get this sort
of information (such as getRemoteHost() etc).

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequ
est.html



-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James
Sent: Thursday, August 25, 2005 10:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote IP address

Good morning people,

Please excuse my problematic question. Can someone point me in the right
direction? 

I want to be able to get the client's ip address, in asp it would be:
        
                Request.Server.Variables("Remote_Adde")

Is there a comparable in Flex or what might be the best way to obtain
this?

Thanks
James





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h52su2o/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124987938/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to