Hi,

I do this with a simple .jsp script in the Flex app.  You can include
something like the following:

getIPAddress.jsp:

<clientip>
<valGet><%=request.getRemoteAddr()%></valGet>
</clientip>

Then call that within Flex in an HTTPService and parse the return. 
HTTPService.result.clientip.valGet , etc....

Then you can store that in a sharedobject or whatever you want.

Hope it helps.

-Michael

--- In [email protected], "temporal_illusion"
<[EMAIL PROTECTED]> wrote:
> I assume it's a http service you're using that calls the PHP page to
> get the IP?  I think the web service calls are proxied by default. 
> Try adding the useProxy="false" property in the http service, that
> should tell the app to go to the web service directly.
> 
> Jason
> 
> --- In [email protected], Jeff Beeman <[EMAIL PROTECTED]>
> wrote:
> > We've got a Flex app that is calling a PHP script to retrieve the
> > end-user's IP address (for an authentication procedure), but the IP
> > address that is returned is the address of the Flex server, not the
> > client.  Any thoughts on why this is happening?  And, how do we work
> > around it?
> > 
> >  
> > 
> >  
> > 
> > /*******************************************
> > * Jeff Beeman
> > * Digital Media & Instructional Technologies
> > * Arizona State University
> > *******************************************/




 
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