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
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: Adding and editing instance firewall rules in Amazon Lightsail | Lightsail Documentation
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.