- Home /
Would hosts using same hostopology/ip address shared max available connections?
Hi everyone, this is my first question post, I am sorry if you found you having trouble understand the question or reading it.
Here is my question:
I am aware of the maxConnection
has to be < 65535 while creating Hostopology
like this: HostTopology topology = new HostTopology(config, maxConections);
But I wonder if it's possible to allow more than 65534 clients connect to a server with multiple hosts using same hostopology and ip address. Here is a prototype I am thinking about for setting up those hosts:
NetworkTransport.Init();
ConnectionConfig config = new ConnectionConfig();
TCP = config.AddChannel(QosType.Reliable);
UDP = config.AddChannel(QosType.Unreliable);
PackageChannel = config.AddChannel(QosType.ReliableSequenced);
HostTopology topology = new HostTopology(config, maxConections);//maxConnections = 65534
Host_0 = NetworkTransport.AddHost(topology, port);
Host_1 = NetworkTransport.AddHost(topology, port+1);
So as you can see Host_0,1
have same HostTopology
and ip
. And now let's say there are 65534 clients are connected to Host_0
already, and my question is does connections are available for Host_1
?
I have no experience on socket programming, so any info to help me understand the answer would be great, thanks in advance!
Your answer
![](https://koobas.hobune.stream/wayback/20220612114550im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Pushed back when applying NetworkTransform 1 Answer
Unity 5 UNet Spawn as Child. 1 Answer