The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

Hello, I've been trying to get Godot 4's online multiplayer features to work, but I'm having issues getting it to function properly

I thought that maybe I was doing something wrong, so I downloaded this pre-made Godot 4 multiplayer project, but I'm having the same issue
Everything works fine when it's run through the localhost address, but when I replace the local address with my IPv4 address, it just gets stuck trying to connect before timing out. I've forwarded the port both UDP and TCP. This is starting to get really frustrating, as I genuinely don't understand what the issue is.

Godot version 4.0.2
in Engine by (20 points)

1 Answer

0 votes

Simply port forwarding isn't enough.

Is your IPv4 address is dedicated, static and uniquely given from your ISP? AFAIK most of home user IP are shared dynamic and can change from time to time. So, it is common for multiple users to share the same IP address provided by their ISP to conserve IPv4 addresses, which are limited in availability.

The best way to check your game accessibility "online" is to rent a digitalocean or other vps server for a day, then turn it off afterwards.

by (36 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.