- Home /
Dedicated server not starting Unity Mirror
I made an online game with Mirror. I can connect from several running editors and everything will work. When I made a server build according to this guide, I can not connect to the server.
In the PlayerSetting I enabled ServerBuild
And also already tried to start the server with arguments -nographics and -batchmode, it doesn't work
I used AWS laighsail hosting like in the video
Answer by Hannah693 · May 31 at 01:41 PM
Check this out, this might help : https://forum.unity.com/threads/dedicated-server-kit-online-matchmaking-for-mirror-and-more.923555/ West Penn Power Bill Pay
Answer by VanToRiaXVII · Jun 03 at 04:02 PM
First, can you connect to your game server build running on a local environment? If that works, but it doesn't work on LightSail, you might have a port mapping issue where the ports that should be open for your client to connect aren't actually open.
If you're using KCP, I think its default port is 7777, so you'll have to take a look at how to open that port on LightSail. Here's a link to the documentation in case you're wondering how to do it: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-editing-firewall-rules
Last but not least, if you're looking for a really simple way to host your game server, there is something easier than LightSail. Take a look at Edgegap. They can launch your game server, instantly and on-demand on the best location for your players through a very simple API request.
Your answer
Follow this Question
Related Questions
Dedicated Server Solution? (Non-UI based) 0 Answers
Unity 4.2 Ubuntu batchmode nographics crash with message: Aborted (core dumped) 1 Answer
Linux rendering problem - Blue fog and ghost like see-through objects. 1 Answer
Does the Unity Linux editor work with OpenGL 3? 1 Answer
Is it possible to use C# withUnity the same way it is on Windows? 1 Answer