I am working in a project in my school where we are programming an multiplayer online game. I am working on the connection between server and client and i have stumble upon on a problem that i hope you can assist me with.
So i have an working TCP connection between server and clients that grabs the clients ip give them an id on the server. When connection is established between 4 clients and the server the game starts and i switch to UDP connection because a lot of packages will be sent.
/* Problem */
The problem i am having is that the clients can send UDP packages to the server which then redirects it to the clients. But some clients on different computers blocks windows firewall the incoming UDP packages from the server. So client to server works but not server to clients. When i disable windows firewall then everything works.
How do i make an exception in the firewall or prompt the message that let's the user decide if they accept the incoming connection?