It's best to play around on a testing machine where you don't have data to worry about. But if you're at home and just starting, then either try simply the "trusted" rule, or turn off the firewall for a few moments - but disconnect from the internet and all other networks before you do. Alternatively, with a more rigorous security setting for that interface, you might need to set your firewall to allow such connections. So when your PC WiFi interface has an IPv4 address, you need to connect to that interface from your phone, using that interface address.Īlso, your WiFi network needs to be set to "trusted" in the network settings for that interface, or your firewall might block the connection. If your interface does not have a IPv4 IP address, then you need to go to network settings and set an option there to require such an address to be assigned to that interface - and if that doesn't work, you might need to set one yourself, manually. It will be preceded by the word "inet" and might be something like 192.168.42.186 (this is an example of a private IP address). Now, along with that interface name, there should be an ip address. This could be your WiFi card or USB WiFi dongle, and the name could be something like "wlx503eaa2592a3". So this is the WiFi interface (the thing creating the wireless connection) on the PC, to which the phone needs to connect to.Īnd look for your WiFi interface name. On the phone, you need to input the interface address on the computer, that you want to connect to. ![]() A FORWARD -i wlp3s0 -j REJECT -reject-with icmp-port-unreachable ![]() A FORWARD -o wlp3s0 -j REJECT -reject-with icmp-port-unreachable A FORWARD -d 10.42.0.0/24 -o wlp3s0 -m state -state RELATED,ESTABLISHED -j ACCEPT A INPUT -i wlp3s0 -p tcp -m tcp -dport 53 -j ACCEPT A INPUT -i wlp3s0 -p udp -m udp -dport 53 -j ACCEPT A INPUT -i wlp3s0 -p tcp -m tcp -dport 67 -j ACCEPT A INPUT -i wlp3s0 -p udp -m udp -dport 67 -j ACCEPT This is the outcome of "sudo iptables-save" $ sudo iptables-save The Ubuntu server does not run a firewall. "The port on which the computer is listening for a connection could not be contacted." ![]() I tried to connect it to the server with the address localhost:5901. On the mobile phone I installed a VNC client. Nmap scan report for localhost (127.0.0.1) I also checked port 5901: _$ nmap localhost I checked and it is running: _$ sudo systemctl status - Remote desktop service (VNC)Īctive: active (running) since Wed 18:27:15 CEST 2h 41min agoĬGroup: 10463 /usr/bin/perl /usr/bin/vncserver :1 -geometry 1440x900 -alway_ I set up a VNC server on the computer, using tigervnc. I created a Wi-Fi hotspot on the computer and I connected my phone to this Wi-Fi network. I want to set up a VNC connection between my computer and my mobile phone.
0 Comments
Leave a Reply. |