java fails to get the ip of different clients under the same gateway

Java obtains the IPs of different clients under the same gateway. The obtained IPs of the clients are all the gateways, but the actual IP of the client cannot be obtained. How to deal with it? The network deployment is shown in the figure:



Excuse me, is there any way to correctly obtain the real ip of the client?



LAN access to the external network needs to go through your gateway! So the IP obtained on your server is the same! When the company's intranet accesses the server, the request.getRemoteAddr on the server only obtains the ip of the company's gateway. I have also encountered


different ip addresses of different clients in the company's intranet . http://www.iteye.com/problems/52039

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326073119&siteId=291194637