Code Monkey home page Code Monkey logo

redirect-the-service's Introduction

###Purpose To forward a service on a windows PC, to a linux server.
Useful if your windows PC does not have a public ip.

###Server On Linux here's link for server-on-linux.
It accept connection from Pipe-Two-Server program, then wait for service user connection.
You can write a compatible program runs on Windows,
to forward your service onto a pubilc Windows server.

Pipe-Two-Server (on Windows)

Connect to Two servers (one is supposed to no local host), and passes messages to each others.

Once the server-on-linux has been connected by user, it sends
a character 'A', to inform Pipe-Two-Server. Then Pipe-Two-Server
will connect to local service.

Compiled binary

###Example

  • Public Server

    while true; do
    server-on-linux port_for_windows port_for_service_use
    done

    notice that this should be run before Pipe-Two-Server runs.

  • Windows PC

    pipe-two-server.exe service_port linux_server_ip port1
    

    Now you can connect to linux_server_ip:port_for_service_user
    just like the service is running there.

###Problem to fix If pipe-two-server.exe has been terminated (while no client connectingto linux server),
the server-on-linux command will keep listening, and the while statement will not continue.

Now just fix it by connecting to linux_server_ip:port_for_service_user to relief it from infinite listening.

###TODO

  • prevent suspending listen on the linux_server (the bug)
  • test support of ssh connection (this should work)

###NOTES tested service (works with this project)

  • RDP (port 3389)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.