Does anyone know of a reliable way of determining the IP
addr. or hostname of the server that the Flex app. was launched
from? My application needs to make a connection back to the server,
but the server could be at various IP addresses / host names.
The most reliable way is to get it from some server side
script... for example, in the Flex app, use an HTTPSerice or some
other remote service call to call say, a PHP or ASPX page that
returns the server's IP addy.
Thanks for my response, but my situation is that I develop my
apps on one machine and run the back end services on that same
machine in a testing environment. So when testing I want to connect
to localhost for debugging. But when deployed on the real server
the Flex app. should connect to servername, the real hostname of
the server it's deployed at. I can't yet figure out how to have
Flex determine the name of the host from which it was