NetworkTransport.AddHost

Hi,

I want to debug my network code. I start one game instance via build exe and second in Editor. I use NetworkTransport. When I call for the first time NetworkTransport.AddHost(), I get valid hostId. But when the second application calls NetworkTransport.AddHost(), return value is -1. Is it possible to run two application with same host settings on one PC ?

Thanks

Hi,
If you have something like that.
socketID = NetworkTransport.AddHost (topology, socketPort);

remove the “socketPort” part on the client:
socketID = NetworkTransport.AddHost (topology);

It’s work for me.