I am working on nodeJS project in this project I want to get client IP address. For this I am using public IP package, I’m using the following code, and installed the package accordingly.
‘npm install --save public-ip
and following code
publicIp.v4().then(ip => {
});’
The above code is working fine locally, but when deployed on the server(AWS server), it’s giving the AWS server IP. Help me resolve the issue.