Skip to content

bridge server written in python to connect to networks you can't connect to

Notifications You must be signed in to change notification settings

AngeloHH/bridge-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

What is this?

This project is a Python-based TCP tunneling system designed to address the challenges of P2P connections in environments where direct connections are disabled. It was created with the purpose of learning about sockets, multithreading, and selectors in Python while providing a practical solution for bridging connections between clients and servers.

How does it work?

bridge-picture

How to start the bridge server

from bridge import TCPTunnel
# Define the server's hostname and port
hostname = ("localhost", 5000)
# Initialize and start the server
TCPTunnel(hostname).server()

How to start the bridge client

from bridge import TCPTunnel
# Define the server's hostname and port
hostname = ("localhost", 5000)
# Define the local port to be tunneled
local_port = 80
# The token must match the one assigned 
# by the bridge server.
token = 'secret-token123*'
# Initialize and start the client tunnel
TCPTunnel(hostname).tunnel(token, local_port)

Created with <3 by AngeloHH

About

bridge server written in python to connect to networks you can't connect to

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages