How to disable all remote connections when starting with NetworkManager.StartHost

I’m trying to figure out how to prevent any and all remote connections when a player starts up the Host and Play option. Rather than redesign the scenes and game I plan on using the Host and Play (StartHost) as the “SinglePlayer” version of the game. I’d like to prevent any and all remote connections under this mode so I’ve tried setting null for the NetworkConfig, I’ve tried setting MaxConnections to 0 and 1, but it still allows a connection to the system.

Is there a way to do this? Searching the forums and google came up with nothing other than the null config method, but that doesn’t work.

Thanks!

I’d try binding the server to the loopback IP address (127.0.0.1).