PDA

View Full Version : Get remote client IP Address


dreicher
01-19-2007, 01:10 AM
I've been racking my brain trying to come up with a way to get the remote clients IP Address in the Main class using the sample host environment. It's not exposed in Context or the DeviceEventInfo class. Obviously, I can see it in the resource requests, but I'm trying to get it at a bit higher level.

Thanks in advance for any help with this.

Dan

dreicher
01-20-2007, 05:16 PM
In case anyone looks here for the solution:

((com.tivo.hme.host.sample.HostContext)getApp().getContext() ).getSocket().getInetAddress().getHostName();

Dan