Plan what you want to connect to lets you make secure remote connections to TCP based services on your device. Most users start with a SSH Connection to port 22, which gives you remote console access.

You can also install Services for:

  • http based web server or application (default port 80)

  • https based web server or application (default port 443)

  • VNC server (Virtual Network Console, a remote graphical desktop system) (default port 5900)

  • nxWitness (remote video application) on port 7001

  • any other TCP based service on any port

The installer does not install or manage any of the server applications listed above. Most systems at least support ssh and scp (secure remote console and file transfer) by default. Beyond that you will usually have to install the application yourself.

Connecting to Network/LAN Applications

We define a "Network/LAN Application" as a TCP service that is running on a different device on your LAN. For example, the web UI on your router is an example of a "LAN application". Using the "LAN Application" option allows you to access TCP servers on your LAN without needing to install the connectd package on the device itself.

For a LAN application, you will need to know the device's IP address (which should be static or otherwise fixed, for example using "DHCP Reservation" or a similar feature on your router. Another possibility is to use mdns.

Configuring SSH and VNC on the Raspberry Pi

The Raspberry Pi uses the "raspi-config" program to enable or disable SSH and VNC.

sudo raspi-config
Choose option 5, "Interfacing Options"

Next you can enable or disable SSH or VNC.


We recommend that you not disable SSH, and you can use VNC if you want to have access to the graphical desktop. By default Raspbian Stretch or later installs RealVNC server on port 5900.

Detecting running network applications

On most Linux systems, you can use the following command to show active tcp servers which you can connect to.

For TCP:

sudo netstat -lpn | grep tcp


For UDP:

sudo netstat -lpn | grep udp
mceclip1.png Lines beginning with tcp or udp represent ipV4 services, while those marked tcp6 or udp6 are compatible with ipV6.

For ipV4 servers, the port is indicated by:


<interface> might represent a specific hardware interface on the device. Most often it is set to "" which means "all interfaces".

Usually, there is a line corresponding to an application for both tcp and tcp6. In this example, all of the applications just above have matching entries in tcp6. Sometimes, as in this case with "xrdp", you will see a port assignment for tcp6 that is not matched by one for tcp. However, the tcp (ipV4) server is in fact available. To be sure, you can try connecting to this port using your device's IP address on the LAN (that is, without using

These are the port numbers that you will need to use when configuring Services.


End of Section

You've reached the end of the section "Overview and Introduction".

Was this article helpful?
0 out of 0 found this helpful