No port via $_SERVER['REMOTE_PORT']


#1

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?

Thanks!


#2

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


#3

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


#4

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:


#5

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