hk123
Posts: 3
Joined: Sun Oct 14, 2012 7:49 am

Raspi TCP ports blocked

Sun Oct 14, 2012 7:56 am

Any network servers running on the raspi cannot be accessed from other machines on the local network. eg a webserver running on the raspi can be accessed from a web browser on the raspi, however cannot be reached from another machine on the local network. Scanning the raspi ports with nmap only shows the ssh port open.

Any ideas on what could be blocking TCP ports on the raspi?

Raspbian wheezy is installed and everything else seems ok.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Raspi TCP ports blocked

Sun Oct 14, 2012 8:56 am

Could you run netstat -an | grep tcp on your PI with and post your results.

Richard S.

hk123
Posts: 3
Joined: Sun Oct 14, 2012 7:49 am

Re: Raspi TCP ports blocked

Sun Oct 14, 2012 1:25 pm

pi@raspberrypi ~ $ netstat -an | grep tcp
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.54:22 192.168.1.52:40032 ESTABLISHED
pi@raspberrypi ~ $

JeremyF
Posts: 515
Joined: Wed Jan 25, 2012 9:06 pm
Contact: Website

Re: Raspi TCP ports blocked

Sun Oct 14, 2012 1:51 pm

According to netstat, it looks like only the ports for SSH and X11 are open. How did you go about attempting to open the port for your webserver?
{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge

hk123
Posts: 3
Joined: Sun Oct 14, 2012 7:49 am

Re: Raspi TCP ports blocked

Sun Oct 14, 2012 2:53 pm

It was my cherrypy config. Added the following to get it working. Thanks.

cherrypy.config.update({'server.socket_host': '0.0.0.0',
'server.socket_port': 80,
})

Return to “Troubleshooting”