Reputation: 980
Is there any way that I could get the original IP address of the client coming to the server from org.springframework.web.context.request.WebRequest
?
Upvotes: 2
Views: 1121
Reputation: 163
I would suggest to take a look at the hierarchy where this interface is used.
Here's the UML:
Main thing here is to find the place where we will be able to get the native javax.servlet.http.HttpServletRequest
interface and its standard methods:
getRemoteAddr()
, getRemotePort()
, getRemoteHost()
.
Upvotes: 1