I tried this code below
@Autowired
private HttpServletRequest request;
request.getRemoteAddr();
but i only get the ip adress of the server of the test environment which is: 220.5.13.85, my ip address is 220.5.13.45.
I tried to view the request headers in pagesource under network tab but i can't find my ip address there. I can only see the Remote Address:220.5.13.85:80 under General and Host:220.5.13.85 Referer:http://220.5.13.85 under request header is the same.