[NZLUG] VNC server/viewer setup help required
Martin D Kealey
martin at kurahaupo.gen.nz
Wed Jul 13 16:34:56 NZST 2016
Useful options for netstat include:
-n makes the output numeric (so you don't have to go looking up port
names to get their numbers);
-l restricts the output to listeners, rather than connections;
-t restricts the output to tcp (excludes UDP or Unix sockets);
-p report process; and
-e report the kernel channel of the local socket
(which can be searched for in /proc/$pid/fd).
So I would run: netstat -tlnep | grep -E '5901|6001'
Then I'd check that the reported processes are for the right xvnc process.
I would then look at iptables -xvnL and see if anything is configured to block
ports in the 5900-5999 range.
On Wed, 13 Jul 2016, tuxkid wrote:
> > netstat -lt
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address
> tcp 0 0 *:netbios-ssn *:* LISTEN
> tcp 0 0 localhost:5901 *:* LISTEN
> tcp 0 0 *:x11-1 *:* LISTEN
> tcp 0 0 *:ssh *:* LISTEN
> tcp 0 0 localhost:ipp *:* LISTEN
> tcp 0 0 *:db-lsp *:* LISTEN
> tcp 0 0 *:microsoft-ds *:* LISTEN
> tcp 0 0 localhost:17600 *:* LISTEN
> tcp 0 0 localhost:17603 *:* LISTEN
> tcp 0 0 *:gnunet *:* LISTEN
More information about the NZLUG