Ubuntu – UDP Hole Punching problem, the port numbers of udp packets are inconsistent
The server uses Java's datagram socket and datagram packet for implementation, deployed on a server with a public IP address. One client also uses Java's datagram socket and datagram packet, bound to port 22222, running on a Windows 11 PC,…