diff --git a/Unity/OpenSeeLauncher.cs b/Unity/OpenSeeLauncher.cs index 0c48760..b607227 100644 --- a/Unity/OpenSeeLauncher.cs +++ b/Unity/OpenSeeLauncher.cs @@ -306,7 +306,7 @@ public class OpenSeeLauncher : MonoBehaviour { if (inUse[i].Port < port) continue; if (inUse[i].Port == port) { - if (port <= openSeeTarget.listenPort + 500 && port <= inUse[i].MaxPort) { + if (port <= openSeeTarget.listenPort + 500 && port <= IPEndPoint.MaxPort) { port++; continue; } else {