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
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

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.

IP Ban

FlowFlowFlow
2014-06-17 22:36:21

Hello, I'm currently working on a ban system for my game. It works this way: There's a list of banned players, when the player logins it checks if that username is banned or not, if is not banned it will connect to photon, else it will not. The problem is I can't seem to find anything that can get the player's IP with Photon. So, each user has a IP, if the username is banned, it's IP will be banned, this to prevent players from making different accounts. Is this even possible? or it's only possible through PHP?

Comments

Tobias
2014-06-18 08:46:29

IP Addresses are not assigned per user, so banning users via IP is maybe not what you want to do. They might simply restart their modem and get a new one. If you wanted to do this, you would have to get the public IP client side and then send it along with the other data to the Custom Authentication service. There you could deny access to Photon. Custom Auth is described here: http://doc.exitgames.com/en/pun/current ... entication

Back to top