Hardware Reference
In-Depth Information
Discussion
A computer can have a number of services (such as SSH, FTP, or a web browser) that use
the network. Port numbers are the way of specifying the computer to which service you
want to connect. When you point your web browser to an IP address such as 192.168.7.2 ,
the browser assumes you want port 80 . Apache defaults to listening on port 80 , so your
browser connects to Apache by default.
The Bone, however, has something else already listening to port 80 , so Apache (on the
Bone) has been configured to listen to port 8080 . How do you know what port Apache is
using? Try the following command:
bone# netstat -taupn
Active Internet connections (servers and established)
Proto Local Address Foreign Address PID/Program name
tcp 127.0.0.1:3350 0.0.0.0:* 880/xrdp-sesman
tcp 0.0.0.0:22 0.0.0.0:* 860/sshd
tcp 127.0.0.1:6010 0.0.0.0:* 1143/0
tcp 127.0.0.1:6011 0.0.0.0:* 17227/4
tcp 0.0.0.0:1883 0.0.0.0:* 625/mosquitto
tcp 0.0.0.0:3389 0.0.0.0:* 859/xrdp
tcp 192.168.7.2:22 192.168.7.1:59284 1143/0
tcp 192.168.7.2:22 192.168.7.1:45655 17227/4
tcp6 :::22 :::* 860/sshd
tcp6 :::3000 :::* 1/systemd
tcp6 ::1:6010 :::* 1143/0
tcp6 ::1:6011 :::* 17227/4
tcp6 :::1883 :::* 625/mosquitto
tcp6 :::8080 :::* 368/apache2
tcp6 :::80 :::* 1/systemd
tcp6 192.168.7.2:80 192.168.7.1:34251 1102/node
tcp6 192.168.7.2:3000 137.112.41.137:53894 1104/node
tcp6 192.168.7.2:3000 192.168.7.1:51422 1104/node
tcp6 192.168.7.2:3000 137.112.41.137:54480 1104/node
udp 0.0.0.0:58536 0.0.0.0:* 530/
avahi-daemon: r
udp 0 0.0.0.0:5353 0.0.0.0:* 530/
avahi-daemon: r
udp 0 0.0.0.0:67 0.0.0.0:* 1011/udhcpd
udp6 :::42706 :::* 530/
avahi-daemon: r
udp6 :::5353 :::* 530/
Search WWH ::




Custom Search