public ip address of client

The whole answer can be found below.

Please note: 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! And we offer you support through these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

Tobias
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