How to get client IP Address in Netty http server
Ioan Eugen Stan
stan.ieugen at gmail.com
Tue Jul 19 14:02:52 EDT 2011
2011/7/19 George <georgel2004 at gmail.com>:
> Hello,
> Is there something like request.getRemoteAddress() in http server to get the
> ip address of the connected client ?
> Is there any other way of getting the ip address of the client?
You call getRomoteAdress() on a channel instance. Check the api:
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/Channel.html
--
Ioan Eugen Stan
http://ieugen.blogspot.com/
More information about the netty-users
mailing list