PraxTube / ace-of-the-heavens

Fast paced online 1vs1 action game in an arcade-like, 2D top-down style
https://praxtube.itch.io/ace-of-the-heavens
MIT License
9 stars 0 forks source link

FEAT: Turn local server into online server #32

Closed PraxTube closed 10 months ago

PraxTube commented 11 months ago

I tried this for quite some time yesterday, but it doesn't work yet. I believe the issue to be with my port forwarding not working due to my router, so that is what I must test now. One way might be to try and ping the public IP address with the given port, or perhaps try to ssh into it. I could also try to forward the ssh port and see if that works.

Alternatively, I could also try to forward the HTTP port and host a very basic "Hello World" HTML on the server to see if at least this works.

PraxTube commented 11 months ago

Detailed info about this in https://github.com/johanhelsing/matchbox/issues/345.

PraxTube commented 11 months ago

One issue was that I actually set the matchbox server to only listen to 192.168.178.98:3536, which is obviously only working for the private network. Changing it to 0.0.0.0:3536 allows the server to listen to all traffic. This at least fixes the visibility issue of the peers, it still doesn't work to connect two peers from different networks.

PraxTube commented 10 months ago

This works now :tada: Successfully play tested with another peer 1500km away. The current TURN server needs to be replaced eventually, but for the time it will do.