I’m trying to set up a dedicated AWS server for multiplayer Unity game with mirror, following
tutorial by Shrine.
But I’m having trouble.
I downloaded the unity file that Shrine provided,
and did everything same as he did (except for unity version. I opened the file in Unity version 2021.3.9)
which works fine when I connect to the host and local client on my computer.
But when I try to conntect it using AWS server, it fails to connect
with error message on console :
Client Recv: failed to connect to ip=~~~~ port=~~ reason=System.Net.Sockets.SocketException (0x8004005): Connection failed because the target computer rejected the connection
Also when I follow Shrine with terminal,
when I type
./Server.x86_64 to the VS code terminal,
I got
"
[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8”
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1”
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216”
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216”
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152”
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8”
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1”
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576”
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152”
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144”
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144”
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536”
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768”
“memorysetup-temp-allocator-size-gfx=262144”
"
which I think something is going wrong (it’s different from Shrine’s tutorial).
I’m working on:
Window 11
Unity version 2021.3.9 - Windows, Mac, Linux Vuild Support (mono), Linux dedicated server module
AWS lightsail server
I tried changing the host number (in both Unity Network manager and AWS),
and also tried to add the port number to my Window firewall, which didn’t work.
Is there any way to use AWS dedicated server with Unity 2021.3.9 and Mirror?
I have been working on this for two weeks, and I can’t figure what’s the problem
Please, Any help would be appreciated