Page 1 of 1

Can't connect to a port forwarded socket server with public IP

Posted: Fri Oct 13, 2023 10:05 pm
by ckacadv
Hi, i'm still quite new to this kind of stuff. I have been working with socket servers and clients for some time now but only on my PC. I wanted to make an app that will use socket server to recieve/send some info. But i had problems with connecting to the server from the wider network. I used port 1987 and i port forwarded it as tcp(i also tried udp and tcp&udp), entered my public ip into the host field on the client, tried to connect and it failed. I also tried making a DNS entry on my cloudflare so it had its own subdomain and it still didn't work. But when i enter my ip into some online port checker, set the port and click "Check", server displays "connected".

I don't know what to try anymore, i tried adding tcp:// before and that didn't work.


Thanks, ckacadv

Re: Can't connect to a port forwarded socket server with public IP

Posted: Fri Oct 13, 2023 11:10 pm
by FourthWorld
1987 is in the Registered Port range. Have you tried a higher port number?

https://www.speedguide.net/port.php?port=1987

Re: Can't connect to a port forwarded socket server with public IP

Posted: Sat Oct 14, 2023 9:46 pm
by ckacadv
I just tried with port 62302, still the same. Port checker says port is open and server just says connected when i click check port.