Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Retrieving the remote IP when using Flex Remoting over RTMP

Avatar

12-01-2009

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