0 Replies Latest reply on Jan 12, 2009 2:05 AM by (Constantijn_Visinescu)

    Retrieving the remote IP when using Flex Remoting over RTMP

      Hello,

      I am trying to retrieve the IP address of a user making a Java call to my service defined in remoting-config.xml

      If i setup an AMF channel I can use the folllowing to retrieve the remote IP address:

      String ip = FlexContext.getHttpRequest().getRemoteAddr();

      But when i try to do the same over a RTMP channel I get a Java exception because the object that RTMP uses to fake a httprequest doesn't implement that function.

      How do i retrieve the IP of the user making the call in this case? It has to be somewhere or the server wouldn't be able to send a reply to the client, but i haven't been able to find it.

      Constantijn Visinescu