Unity Editor has not permission on UDP port
Hello.
I have the next problem.
I'm developing a small game that use UDP server for multiplayer.
When I run the game inside Unity Editor is not working.
After many resurches I found that the UPD socket that create the client (the game) has not permision on the firewall.
When I build the game and run it at the same PC works fine and the UPD socket has permision.
Some extra data:
I use Windows 10.
I run Unity as adminstrator.
I have open/pemited the ports (input and output) in the firewall configuration needed for my game.
I have open/permited the conections of Unity.exe in the firewall.
Task Manager screenshot (Spanish Windows it means "not allowed, not restricted")
does disabling the firewall fully make it work? if so the configuration is still wrong
I't works when I disable Windows firewall for the public networks. I check agaim my configuration for Unity and has permition for public and private networks.
This looks like it's mainly a configuration issue of your firewall.
Do you actually use the port 64202? Or another one?
Answer by Fenikkel · Dec 03, 2021 at 08:59 AM
What @aress mean with his solution is:
Go to firewall settings -> Advanced settings -> Invound Rules -> Your Unity version -> Allow
In my case, the rule was set to public, so I had to also modify it in "advanced" to allow private connections