2

I am hosting my play REST API in a remote unix machine with a.b.c.d ip address and trying to trigger the routes from my browser in windows machine with different IP address. In the code I am trying to capture IP address and hostname of requestor using request().remoteAddress() and request().host() methods but every time I get IP address of the unix machine not the requestor address. How do I capture requestor IP?

0 Answers0