Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Real IP address of websocket clients behind Cloudflare

$
0
0
Hi,

Our game using websocket (secure if applicable) and we recently run it behind Cloudflare to protect from DDoS. Everything's going great except that the server cannot know real IP address of client connecting to but Cloudflare's proxy server IP. I've searched through the forum and found that proxy is not supported by Photon engine.

Cloudflare's proxy does add an X-Forwarded-For header for the websocket handshake request but how to get this header?

I need this IP for many purposes such as ban players by IP, prevent players with same IP to join to one room.

Viewing all articles
Browse latest Browse all 15755

Trending Articles