I’m not sure I understand the situation. If you don’t mind, could you describe the environment where you are deploying the server and from where you are trying to connect to it?
if it works with both server and client running locally but it doesn’t when the client runs locally and it tries to connect to a remote server, then I would expect that some network configuration is missing from the server deployment. Are you able to send requests using curl to the remote server or does it timeout as well?
It is deployed in AWS, and for some weird reason, everything works if we change the port to 80, even though in the console configuration we see that the port should be 7350.
It seems to be a network configuration issue of your infrastructure. For a smoother experience, we recommend the Heroic Cloud, a managed service on which these nuances are handle by us in your behalf.
Its weird, because we also use unity client to connect to nakama and it works, we were using the same config in js and unity and js needs the port to be 80 and unity uses 7350