Public | Automated Build

Last pushed: 2 years ago
Short Description
Easy Peer-To-Peer Connections
Full Description

Creating a Container

docker run -d --name=P2P -p 2201:2201 -p 800:800 dashohoxha/p2p

Changing the Ports

  1. Start a container with the new ports:
    docker run -d --name=P2P-1 -p 2202:2202 -p 801:801 dashohoxha/p2p

  2. Access the shell of the container: docker-enter P2P-1. The command docker-enter
    can be installed like this: docker run -v /usr/local/bin:/target jpetazzo/nsenter

  3. Change sshd port: /home/vnc/change_sshd_port.sh 2202

  4. Change httpd port: vi /etc/mini-httpd.conf then supervisorctl restart mini-httpd

Links

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.

Docker Pull Command
Owner
dashohoxha
Source Repository