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 <[EMAIL PROTECTED]> 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