Ticket #3 (closed enhancement: fixed)
Communication over only one predefined port
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | major | Milestone: | HoverRace 1.23 |
| Component: | Client | Version: | 1.23 |
| Keywords: | network, firewall, port, UDP, TCP/IP, router, hamachi | Cc: | ryan@… |
| Blocking: | #57 | Blocked By: |
Description
The entire network code system needs to be overhauled; here's how it currently works:
Each client connects directly to each of its peers, selecting a random port to use for communication. This results in a user needing to be either in the DMZ or using Hamachi or a similar VPN client to correctly connect to other clients, since firewalls are everywhere now.
Here's how it should work:
Each client connects directly to each of its peers, selecting only one single port for communication. This port is defined somewhere (registry for now I guess) and is configurable by the user. Now, each user only needs to forward one port for the game to work correctly.
This will entail adding some sort of 'player-id' onto each packet sent.
Ready, set, go.
