How to get client's IP?

Lindsey
edited September 2011 in Photon Server
Hello,

Tell me please, how does server learn client's IP address?
I'm in the middle of the MMO RC3 sample, so in operation handlers there is access to an instance of MmoPeerState, which inherits from Photon.SocketServer.ModuleCore.PeerState and somehow holds the object of type IPeer, but none of them provide a method to learn client's IP.

There is such a method in IPhotonPeer, but how do I get to that interface from PeerState?
















billiards cues
players pool cue
billiard supply
poison pool cue

Comments

  • I'm confused: there is no "PeerState" or "MmoPeerState" in Photon 3.
    There is also no namespace "Photon.SocketServer.ModuleCore".

    You are probably looking for property "RemoteIP" of class PeerBase.