- Home /
Unity Unet Ping Time Out On Mobile
I'm working on a first person shooter multiplayer with unity (2017) UNET for android.
My problem is :
When I use mobile , after a few minute server push me out for ping time out.
But when I use PC this problem occurs much less than mobile.
i change some parameters in network manager connection config :
connectionConfig.MinUpdateTimeout = 200;
connectionConfig.ConnectTimeout = 1500;
connectionConfig.DisconnectTimeout = 5500;
connectionConfig.PingTimeout = 3500;
connectionConfig.NetworkDropThreshold = 150;
connectionConfig.OverflowDropThreshold = 100;
connectionConfig.AckDelay = 200;
connectionConfig.AcksType = 2;
connectionConfig.MaxSentMessageQueueSize = 512;
But there was not much change the resault.
Where is the server? is it on a PC? is it hosted somewhere? What phone are you using?
are you SURE it's a ping time out?
You said when you're on the PC, it happens much less.... It shouldn't be happening at all.
It's possible your internet sucks, but who knows?
hi. i rent a vps from a provider of server services. and system operation is windows server 2012. my phone is nokia 8 . i test it with samsung s3, samsung note 8 and some other mobiles and tablets. most of the time error is because of ping timeout. i happen when i run my game on mobile some times after 1 $$anonymous$$ute , 10 $$anonymous$$ute or 15 $$anonymous$$ute. but when i build my game for desktop and run it , disconnecting from servers is much less. even when i use xampp for local tests its happening !!!
Your answer
Follow this Question
Related Questions
Parenting via Networking 0 Answers
Unity networking tutorial? 6 Answers
How to synchronize disable and enabling game objects over the network? 0 Answers