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

--- In [email protected], "Adam Royle" <[EMAIL PROTECTED]> wrote:
>
> AFAIK you can't get the client ip address using 
flash/flex/javascript. Apparently you can get it using a Java 
Applet... but I would ask why you need their ip address. 
> 
> Are you trying to use ip address to identify an anonymous client 
session without having the user login? The way I did this was to 
create a random UUID and pass that through querystring with my calls 
to the server. I would then create a database session based on this 
UUID. Something like this....
> 
> 
> import mx.utils.UIDUtil;
> 
> public var gateway:RemotingConnection;
> 
> public function init():void
> {
>  var uid:String = UIDUtil.createUID();
>  var url:String = "http://myurl.com/gateway.php?uid="+uid;
>  gateway = new RemotingConnection( url );
> }
> 
> 
> Hope that helps. If not, have a great Easter!
> 
> Adam
> 
>   ----- Original Message ----- 
>   From: lanlin998 
>   To: [email protected] 
>   Sent: Friday, April 06, 2007 11:35 PM
>   Subject: [flexcoders] Re: Client IP Address
> 
> 
>   --- In [email protected], Bhuvan Gupta <eaiesb@> wrote:
>   >
>   > Hi All,
>   > 
>   > I want to send client's (browser's) IP address to the backend.
>   > As I understand, Flex doesn't provide support to fetch the 
client 
>   IP 
>   > Address.
>   > What is the best and browser independent way to send client IP 
to 
>   the 
>   > backend ?
>   > 
>   > Thanks
>   >
>   Hi, have you found the solution yet? I am in a similar 
situation. I 
>   need to find out the host name of the client machine so I can 
send 
>   different WebService calls to the server. 
> 
>   Thanks
>


Reply via email to