public ip address of client
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Realtime.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
public ip address of client
Venca
2012-07-24 02:49:45
Hello everyone,
is there a way to get the public ip address of the photon client?
I would like to have statistics of players connected to the same room with their public IP addresses. I haven't found any information on the topic in photon documentation. Users can be behind NAT so I need to ask external server for that and my question is if there is way to ask a Photon server/cloud?
I am using a cloud with Unity3d.
Venca
Comments
The Photon Server has this info per peer but by default doesn't send it back to clients. This can be done with the server SDK easily. The Photon Cloud does not support this. You could do this work on the clients, using a "my public IP" service but not directly with the Photon Cloud.
Back to top