I do exactly this, but using a .net backend. There I use:
Request.ServerVariables("remote_addr")
To get the client IP address.
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Villasana
Sent: Tuesday, May 29, 2007 2:22 PM
To: [email protected]
Subject: Re: [flexcoders] Re: Client IP Address
Lan, why don't you wrap the flex application in a simple .jsp or .php,
and let that file take care of the IP using a session or something of
the sort?
Best regards
Terius
lanlin998 wrote:
>
> Adam,
>
> Thanks for the suggestion. You are exactly right about the
> anonymous client login. However, we don't just have anonymous
> users. Here is the goal: We have two types of clients: one from a
> unique touch-screen panel mounted on the wall that stays in a fixed
> location. Since there is no keyboard available, the server would
> automatically let the browser from the touch-screen host log in.
> The other type of client is any regular browser that come form any
> where. The server will require this type of user to enter user name
> and password. So far, we can only think of using the IP to
> identilfy the touch-screen host from the rest. Since the client is
> written in FLASH and can't get the client IP to the server, we
> thought about let the backend auto detect the client IP and let the
> user login without a password. But our backend uses axis/tomcat. Do
> you know a way that the axis web service can get the client IP?
>
> I am so stuck! Can't believe a simple thing like that can be so
> hard. Any help is very appreciated!
>
> Lan
>