Reverse VNC remote connection

nullSurely on more than one occasion you have calldo some known or family so that you can solve some problem with your Dear computer.

Shouting “how do you understand computers?” Any excuse is good to make you go home to solve whatever happens to the computer at that moment. [ y es que leer en Internet soluciones a problemas no entra dentro de sus habilidades técnicas 😦 ]

In order to avoid unnecessary travel that make you waste more time than you need to solve the failure I want to explain how to use VNC in order to remotely connect to computeras long as the Internet connection 😉

Why reverse connection?

Because firewalls Y routers we have no choice but to open Some ports in order to establish the connection between teams and, assuming that the person which Let’s help is short of resources, i doubt i know how to do it.

The idea of ​​the reverse connection by VNC (or reverse VNC connection) is that the port that opens is that of our router (port forwarding) avoiding inconvenience (and unnecessary explanations) to our “client” (allow me to call the person we are going to like this from now on help remotely).

Installation at the “client’s” home

The only thing we have to ask the “client” is run in your terminal (we’ll assume you know how to copy and paste and can open a terminal… otherwise, you will have to take a walk to his house and, since you are there, you will install it so you do not have to return)

sudo apt-get install x11vnc

Configuration in our house

The first thing we have to do is enable any of the portCommon VNC s (5500, 5800 and 5900, although it could be the one you want) on our router and aim (thanks to the NAT rules router) to our computer.

This operation depends on the router that you have so the best thing is that I indicate one web where to consult (in perfect English) how to do it on your specific device.

We prepare to serve the “customer”

The setting above we will only have to do it once (hopefully and fixed IP), if we had dynamic ip (dhcp) the same is going to have to do it n-hundred times; Nor should we exaggerate: routers usually bring the possibility of configuring the port forwarding based on MAC of the equipment thus avoiding the problem of dhcp. As the solution depends on the router you have, I will leave its study to the curiosity of the reader and to a possible later article so as not to extend more than we have already done.

Before you can serve the “customer” you must run on your computer a

vncviewer -listen

and with this we will have our computer waiting for the client’s connection on port 5500; if the port that you opened in the router in the previous step it is, For example, him 7089 you must execute

vncviewer -listen 7089

Let the show begin

Now that we have the port open and vnc ready to receive connections we must instruct the “client” to execute a

x11vnc -connect TU_IP_EXTERNA: 5500

where

  • TU_IP_EXTERNA is the IP address of your computer; You can obtain it by following the instructions that we gave at the time to obtain the external IP (on the page that we have recommended for the port forwarding it also shows it to you)
  • 5500 is the port What have we open on router; if you have put another one like 7089 you already know that you should change it

Once the “client” executes that instruction your desktop will automatically appear on our computer and this one will freak out seeing how we move the mouse and begin to open windows remotely 🙂

summarizing

Although it may seem excessively complex (due to the length of the article), the process is reduced to:

  1. Open port in our router (only once and it remains for life)
  2. Run a vncviewer -listen on our computer
  3. Install (first time only) at x11vnc client home (by running sudo apt-get install x11vnc)
  4. Ask the client to launch an x11vnc -connect TU_IP_EXTERNA: 5500

The most complicated step will be, with total security, get open the port on the router but remember that with the instructions that appear in the port forward website and the tool we recommend to use to check open ports you will have more than enough to do it. If you still have problems, you know where to find me 😉

Deja un comentario