I am using go and gin following this doc: Deploy a Go Gin Web Server | Render.
I’ve got a simple version of my app up and running and I want to log the IP of clients making requests to my service. My problem is that
c.ClientIP()(gins method for getting the clients IP) is always logging 127.0.0.1. So I’m just getting the loopback address for all my requests.
I do not believe this is a problem in the app itself, but is an issue with how traffic is forwarded to my app. I am not 100% sure though.
Any advice would be appreciated and I can clarify anything if needed.