udp - P2P application developement -
I want to develop a P2P gaming application. What is the fastest and effective way to implement NAT traversal and peer discovery I have read about STUN and Turn Server but what are the open source parts available and how can I use them? 1. Do those STUN servers work on 3G networks? 2. Does the UDP Hole Penching work on 3G networks?
-
If you have video games, you probably want a central server, in which all Game data are included and allow users to be a customer. You know, like puzzles and dragons, where you have a username and password and sign in on a server.
-
The implementation of the Google "Stun Client" and "ICE Protocol" open source are plenty
-
STUN fails on mobile network because mobile The symmetrical, massive NAT network of
Why mobile broadband can not be bypassed by the Net?
To set up a connection for this data, you have to send a packet to the port on which they are and send them a packet in a port which you are doing Are there. If you send it to the wrong port number or send it to the wrong port number, then you miss and no connection is established. If both of you are connected to the port simultaneously and send guided guides to the other's IP address, then you have the possibility of sending one packet in your port and 1 in 65535 (the number of 65535 ports on the IP address) and their It is near the possibility of sending a packet in your port, approximately 65 in 65535 So you have a chance to establish a connection (1/65535) * (1/65535), or (1/65535 ^ 2)
You do not know your port number for any subsequent connection because For each new outbound connection, the router gives you a new port number at the interval between 1024 and 65535. So if you ask a server that you have an IP and port number, it can tell you the correct IP (unless you turn your phone off or do nothing like this), but the port number will change. If you try to guess the port number, then you think that to select the number of possible port numbers (1 65535-1024-1) / (65535-1024)) or 99.998% changes make you guess Are (65535-1024).
So that until port numbers are not anticipated (which are not in many 4G networks), you have been stopped - no chance.
Your best bet is to use a stain and not support bad router.
Comments
Post a Comment