#Godot 4 Multiplayer Troubles

5 messages · Page 1 of 1 (latest)

drowsy otter
#

I'm trying to get multiplayer working in Godot 4, but I'm having some very frustrating issues with this
I set up a small multiplayer lobby that works when connected to localhost, but not when trying to connect to my actual IP

To see if this is an issue with my code, I downloaded this tutorial project https://github.com/TheGodojo/Multiplayer-Nodes-Complete, replaced "localhost" with my IP address and the port with the port that I've had forwarded, and still I'm given the same issue. I can start hosting the server without any errors, but nothing can join.

I've forwarded the port for my PC through the xfinity app both tcp and udp, but it's still not working.

drowsy otter
#

So update: using my ipv6 address instead of my ipv4 address allows me to connect from another computer - as long as it's connecting to the same wifi

#

I don't understand what this issue is

#

The upnp discover is a success, the upnp gets a successful gateway, and the upnp adds the port map without error

vale reef
#

replaced "localhost" with my IP address and the port with the port that I've had forwarded
when opening a server you typically use 0.0.0.0 to express exposure on all network adapters
alternatively you'd have to specify the LAN IP of the adapter you want to use - i.e. the IP your router assigned to your machine
on the other client (outside your LAN) you'd use the WAN IP your ISP assigned to your router to connect (whatismyip.com etc)