i'm making a game with peer to peer connection. The thing is, local IP address works only within same network, and every computers in the network use the same public IP Address. Is there any other way to identify a computer on another network in C#? Maybe combination of both?
Asked
Active
Viewed 195 times
2
-
Browser or desktop game? – TomTom Jan 22 '16 at 07:46
-
@TomTom Desktop game – Joshua Whale Wablitzky Jan 22 '16 at 08:27
-
So what is your problem? you have access toe the machine. SID, HD numbers, internal IP address, MAC addressses, processor serial number, can generate a key file on installation. Choose what you prefer and program it. – TomTom Jan 22 '16 at 08:28
-
@TomTom From library I use, I can only use IP Address and Port to connect to the computer. – Joshua Whale Wablitzky Jan 22 '16 at 08:33
-
1If you use a tool UNSUITABLE FOR THE JOB, then replace the tool. – TomTom Jan 22 '16 at 08:41
-
@TomTom Then, how do they normally do peer to peer connection with another network? – Joshua Whale Wablitzky Jan 22 '16 at 08:53
-
You need some sort of server involvement here. This is not easy, you need to look into things like SIP, STUN and WebSockets. – Ben Jan 23 '16 at 21:57