Skip to content

bobcarroll/dsock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dsock

dsock is a bi-directional, multiplexing socket server that acts as a proxy between two machines sharing a common file system. This is useful in situations where there is no direct network connectivity. For example, dsock would enable connectivity to a service over a Windows remote desktop session.

Quick Start

There are no dependencies other than Python 3.12. Clone the repository and update the configuration dictionary in server.py. The library package can be installed in site-packages although it isn't necessary for running the server.

As an example scenario, connecting to machine A's port 8080 will reach machine B's port 80:

config = {
    'a': {'pipes': [], 'tcp-sockets': [('127.0.0.1', 8080, '127.0.0.1', 80, '/mnt/share/web.sock')]},
    'b': {'pipes': ['/mnt/share/web.sock'], 'tcp-sockets': []}}

Then start the server on A:

$ python server.py a

And also on B:

$ python server.py b

About

File-based socket server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages