• Godot Help
  • Hybrid lobby question again. Won't connect with public IP

Hi! It's me again. I did indeed use the script that @cybereality gave me, but now my players don't actually connect to the ENet now. I've been reading about port-forwarding and I've even done it in the router itself, but nothing's really working.

Basically, I found out that I can't normally connect with a public IP.
This is the error it gives me whenever I try to select a character with a button, which requires RPCs to function correctly.
ERROR: Trying to call an RPC via a network peer which is not connected.

How do I get it to connect? I have a static IP and all. I'm just wondering if it's something in the actual game programming.

Megalomaniak

I'm forwarding the port I use to open my ENet dedicated server application, "3234". Actually been wondering if that's even what I'm supposed to do... And yes, I opened up the port that's in the editor settings too; It doesn't work that way either.

You didn't answer my question though, are you sure your Internet Service Provider is not blocking the port for some reason?

Also make sure you don't have any other firewalls blocking ports. Your router isn't necessarily the only thing that might be blocking a port.

If you can run the game locally (either with 2 apps on the same machine, or 2 machines on the same LAN) then the issue is likely with some router or firewall setting. This can be a router in your home (or the home of the other machine) or it could be on the ISP side, on any number of their routers. You may wish to put some print statements in your Godot app when you try to connect, that reports the error. This may give you a clue as to what is being blocked.

    cybereality I think I'm going to do that. My only hint right now is a message when the ENet tries to connect and it just says "Unsuccessful connection...", which means it's not connecting with the connect_ok signal. I'm just gonna look everywhere for a problem in the firewall/router.