I installed TigerVNC server on my Ubuntu server but I can't connect to it. The server is running but when I try to scan for open ports (in LAN) using my phone, 5901 is closed.
Output of nmap localhost
:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-25 08:02 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00026s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
631/tcp open ipp
5901/tcp open vnc-1
Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
I think the problem is here.
Output of nmap 192.168.0.101
:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-25 08:05 UTC
Nmap scan report for cloud.local (192.168.0.101)
Host is up (0.00039s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.58 seconds
What I've already tried:
- Allow port 5901/tcp in firewall
- Disable firewall and reboot
EDIT:
Output of nmap 192.168.0.101 -p 5900-5901
:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-25 09:50 UTC
Nmap scan report for cloud.local (192.168.0.101)
Host is up (0.00032s latency).
PORT STATE SERVICE
5900/tcp closed vnc
5901/tcp closed vnc-1
Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds