Ports not releasing on Wireless LAN

Hi guys,

Does anyone know how I can make sure Unity releases the ports properly?

I have a basic networking example which doesn’t use the master server and connects to ip direct over a wireless network.

The problem seems to be that if I run it and then close it, when I run it again it will not let clients connect unless I switch the WiFi off and then on again thus clearing the ports.

I am assuming that Unity is not releasing the port as it is clearly not available upon re-connect.

I am using a 6000 port and have created both TCP and UDP Inbound/outbound rules on both devices for the firewall (which works because it wouldn’t connect at all otherwise).

Can anyone help with this please?

Is this a custom networking solution? Are you in the editor or is this a standalone build?

Hi Glader,

This is just a Unity Networking Solution using Network.connect(ipnumber, portnumber). I am using a Standalone build on each device.