[flexcoders] Re: Getting IP address of the local machine

2008-11-19 Thread Dmitri Girski
--- In flexcoders@yahoogroups.com, Mark Easton [EMAIL PROTECTED] wrote:

 I dont know about flex itself, but flex can call php and get the ip
address
 from that.

PHP/Server can't always return the machine's IP. If machine is
behind the NAT/proxy, proxy address will be returned.

Cheers,
Dmitri.







Re: [flexcoders] Re: Getting IP address of the local machine

2008-11-19 Thread anuj sharma
Alright guys
Fixed the problem
return $_SERVER['SERVER_NAME']; in PHP and use AMFPHP to use it in Flex
Thanks
Anuj


On Wed, Nov 19, 2008 at 4:18 PM, Dmitri Girski [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark
 Easton [EMAIL PROTECTED] wrote:
 
  I dont know about flex itself, but flex can call php and get the ip
 address
  from that.

 PHP/Server can't always return the machine's IP. If machine is
 behind the NAT/proxy, proxy address will be returned.

 Cheers,
 Dmitri.