The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

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.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

public ip address of client

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.



2012-07-24 08:54:50

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