timl
Posts: 44
Joined: Sat May 04, 2013 3:41 am

TCP access to Pi

Mon Dec 17, 2018 3:24 am

Hi,

I just installed raspbian 2018-11-19 on a new Pi 3. I am using the wired connection which is set to a static IP address (wifi is an issue for the future). I installed transmission and began to run this program but I can not open the TCP port I have specified (51412). I guess I need to open the port and here is what I have tried:

On my router *TP-Link (TL-WR841N) I forwarded this port to the IP address I chose. No joy. I thought I would have a play with iptables (does raspbian still use IP tables)
sudo iptables -A INPUT -p tcp --dport 51412 -j ACCEPT
I think this is accepted
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:51412
ACCEPT tcp -- anywhere anywhere tcp dpt:51412

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
but makes no difference. I can neither save this setting nor stop/restart iptables which makes me wonder whether this task is active.

the firewalld module is not running so I can't see that being a problem.

Any ideas how to open the TCP port? Do I need to start TCP?

Cheers

timl
Posts: 44
Joined: Sat May 04, 2013 3:41 am

Re: TCP access to Pi

Mon Dec 17, 2018 9:47 am

update. There was an issue with binding the IP address to the router (it was already done for a different wifi card). At this point I have opened my port but I'll see how I go tomorrow.

Return to “Troubleshooting”