My StreamPeerTCP object keeps returning STATUS_CONNECTING when trying to connect to my own IP via network, why?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lord Ladrian
:warning: Old Version Published before Godot 3 was released.

I am making a client-server multiplayer game, and so far I can make a connection when I try to connect via local IP (127.0.0.1) but when I try to connect over network IP which I found with whatsmyip, it keeps returning STATUS_CONNECTING indefinitely. I have tried adding inbound and outbound rules on windows firewall but nothing changed. What is the problem here?

:bust_in_silhouette: Reply From: bruteforce

Are you in a local network (behind a router)?
In this case the IP (what the whatismyip shows) is “pointing” to your router and not to your PC… What about port forwarding?

Awesome man, I did a port forward and now it works! Thanks!

Lord Ladrian | 2017-09-25 18:06