Creating a Container
docker run -d --name=P2P -p 2201:2201 -p 800:800 dashohoxha/p2p
Changing the Ports
Start a container with the new ports:
docker run -d --name=P2P-1 -p 2202:2202 -p 801:801 dashohoxha/p2p
Access the shell of the container:
docker-enter P2P-1. The command
can be installed like this:
docker run -v /usr/local/bin:/target jpetazzo/nsenter
Change sshd port:
Change httpd port:
supervisorctl restart mini-httpd
For more information about the project look at:
Remote Desktop Support with P2P VNC
VNC is a well-known tool for remote desktop view and control. The two computers establish a TCP connection so that one of them can access the display of the other. However, almost always these two computers are behind a firewall/router and do not have a real IP to be accessed from the Internet. In such a case one of them can do port forwarding on the router/firewall and this would allow the connection to be established.
The problem is that more often than not, none of the parts that want to establish such a remote connection have access to the firewall that separates/protects it from the real Internet. Sometimes it can even be several levels deep behind the firewall (several layers of firewalls). However, if you have access to an external server (for example a server in the cloud) there is still a workaround and things can be fixed to work. For more details read the docs, which explain the tricks and hacks that can be used in such a case in order to establish a secure connection to a remote desktop.
This project has some scripts that simplify the installation of a P2P server, and the connection between the two clients.