- Home /
Max Connections to an MMO
Is there a limit on max connections to server? in the scripting reference, max connections is set to 32 but is this the limit?
Network.InitializeServer(32, connectPort);
if i use 320 it still works, tho im not about to load up 320 instances in firefox :D
But can i have say 1000 connections to my server?
Answer by asafsitner · Mar 18, 2012 at 01:43 PM
This greatly depends on the server technology you use.
I found out that Unity can connect ~100-120 users before choking and dying completely. It also appears to be bandwidth-capped at 5MB/s and can route, at peak performance, around 200K messages/s before dying again.
Obviously it's not possible to run an MMO on a single Unity instance, but sharding may help if you insist on using Unity and RakNet. I would warn you however that you can't implement area-of-interest for state synchronization.
You can check out numerous other servers such as Photon, SmartFox, ElectroTank or uLink, all very well integrated into Unity.
Alternatively, you can use the Hero Engine, which is specifically designed for MMO making and has a VERY good contract.
Your answer
![](https://koobas.hobune.stream/wayback/20220613065228im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Network: Connect & LoadLevel on client side (bugs) 1 Answer
Server & client on same wifi, error 1 Answer
Networking 0 Answers
Spawning object at wrong location 2 Answers