NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

gsbacon11's avatar
gsbacon11
Aspirant
Feb 14, 2021

port forwarding not working HELP!!!

If images are not loading I have attached them in posts below the inital main post!!!

Background:

I am deploying a simple server that I coded in python which is listening on 192.168.1.2 port 10 which is on a rasperry pi.

The python socket is a TCP socket. I start the server and it is waiting for a connection...

 

When I start a client (also coded in python) on a diffrent computer in my local network, the connection works as expected where the server and client are trading information.( Client is connecting to local ip 192.168.1.2)

In order to have this connection available over the internet I set up port forwarding on my AC1750 Smart Wifi Router Modelk R6400 Serial: 4B335A7PA4455. TCP/UDP is selcted for this just to be safe.

Now I would expect for my server which is running on 192.168.1.2 to be accessible over the internet if my client is trying to connect at my public ip and port 10, however I get "ERROR: Connection refused". Both machines are linux and the firewalls are disabled.

While my server is running I have tried to check on https://www.canyouseeme.org/ and it doesnt seem like my router is ever port forwarding to the computer.

I have tried diffrent ports, using my dynamic DNS that is set on my netgear router, making sure firewalls are off, restarting the router...

I've also tried creating  port forwarding for ssh (port 22) to both of my computers and I can't get it to connect when using my public ip but once again works fine using local ips.

With all of this testing I feel like it has to be something wrong with my router as this seems like the fail point... any suggestions wouyld be greatly appreciated as I am going crazy.

8 Replies

  • Images seem to be not working either... just my luck

    Image 1 attached