You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to reproduce
I have noted this behavior in my network. But i have the problems with this method in heroku. The results ip's are random in some cases. I have used https://ngrok.com/ for local tests. I have a visitor tracker made with on rails and it works for all network and all cases.
I have tested in my heroku server and i have catch the results: Different ips for same client.
In my ruby application running in heroku always it works:
Symfony version(s) affected: 5.0
Description
I'm trying to track IP addresses of visitors. When using getClientIp(), I get the server's IP address rather than the visitor's. I tried this on multiple machines at multiple locations and they all resulted in the exact same IP.
I have look at the follow line:
https://github.com/symfony/http-foundation/blob/0553e8b8cb3a48d6b84a91968871e6e14d5602a4/Request.php#L798
How to reproduce
I have noted this behavior in my network. But i have the problems with this method in heroku. The results ip's are random in some cases. I have used https://ngrok.com/ for local tests. I have a visitor tracker made with on rails and it works for all network and all cases.
I have tested in my heroku server and i have catch the results:
Different ips for same client.
In my ruby application running in heroku always it works:
Possible Solution
👀
Additional context
Test locally with ngrock
Output
The text was updated successfully, but these errors were encountered: