Look at the getRemoteAddr(RequestCycle requestCycle) method from org.apache.wicket.protocol.http.request.WebClientInfo
François Meillet Le 13 avr. 2015 à 01:20, Chris <[email protected]> a écrit : > Hi all, > > I have deployed the Wicket app on a PAAS provider and would like to save the > IP address of the users accessing the application. > > With following code, the ip address retrieved is always the internal one > (192.168.0.1) when I access the application - I would like to retrieve the > public ip address assigned by the internet provider. > > How is this possible? > > HttpServletRequest httpReq = (HttpServletRequest) req.getContainerRequest(); > String clientAddress = httpReq.getRemoteAddr(); > > Thanks, Chris > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
