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
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
You could also pass it to your mxml file as a flashvar, as long as you
have the variable declared in your root application. I do something
similar to the following from within a jsp page:
!-- index.jsp --
html
head
titleflex/title
%@ taglib uri=FlexTagLib prefix=mm /
%
String ipAddress =
PROTECTED] On
Behalf Of Andrew Spaulding
Sent: Monday, June 13, 2005 4:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Getting client's IP address
You could also pass it to your mxml file as a flashvar, as long as you
have the variable declared in your root application. I do something
@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Andrew Spaulding
Sent: Monday, June 13, 2005 4:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Getting client's IP
address
You could also pass it to your mxml file as a
flashvar, as long as you
have the variable declared in your
5 matches
Mail list logo