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

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ckacadv
Posts: 3
Joined: Wed Jul 26, 2023 1:26 am
Contact:

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

Post by ckacadv » Fri Oct 13, 2023 10:05 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Fri Oct 13, 2023 11:10 pm

1987 is in the Registered Port range. Have you tried a higher port number?

https://www.speedguide.net/port.php?port=1987
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ckacadv
Posts: 3
Joined: Wed Jul 26, 2023 1:26 am
Contact:

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

Post by ckacadv » Sat Oct 14, 2023 9:46 pm

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.

Post Reply

Return to “Internet”