No port via $_SERVER['REMOTE_PORT']


Hi, before I’ve attached cloudflare to my server I was using (in php) $_SERVER[‘REMOTE_PORT’] to receive user port. Now it return null. Is it possible to get it with cloudflare working?



That should still be present. Have you made any other changes with the switch? Configuration or switch between HTTP and HTTPS?


Https was always on. We switched from free to businness only


That shouldnt make a difference. REMOTE_PORT is a header injected by the webserver and is taken straight from the TCP connection, switching to Cloudflare or even between plans should not have any effect on that.

My guess would be something in the configuration changed, though I am not sure that could be even disabled :confused:


This topic was automatically closed after 14 days. New replies are no longer allowed.