GithubHelp home page GithubHelp logo

drj31 / popub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m13253/popub

0.0 0.0 0.0 2.38 MB

Publish a service from localhost onto your server

License: GNU General Public License v3.0

Go 78.40% Makefile 13.56% Dockerfile 1.94% Shell 6.10%

popub's Introduction

Popub

Publish a service from localhost onto your server.

Scenario

If you have a web service, a game service, an SSH service, a VNC service, or any TCP service at your home computer. Your home computer is behind NAT and don't have a public and static IP address, but you want your friends to connect to your service.

If you operate another computer or server, which has a public or static IP address, you can run Popub there, to relay the data between your home computer and your friends, so that your service is made public accessible.

Building

Download the source code, and the latest Go.

On your home computer, type:

cd popub-local
go build

On your server machine, type:

cd popub-relay
go build

Running

Assume you have a web service at localhost:80, you want to publish it as my.server.addr:8080, and you want to use my.server.addr:46687 to communicate between your home computer and your server machine.

On your home computer, type:

cd popub-local
./popub-local localhost:80 my.server.addr:46687 SomePassword

On your server machine, type:

cd popub-relay
./popub-relay :46687 :8080 SomePassword

Note: The password is for authorization only, your traffic is not encrypted.

Running as Systemd services

Refer to systemd/README.md for instructions on running as Systemd services.

License

This program is licensed under GPL version 3. See COPYING for details.

See Also

Also please check pofwd, which is a general purpose port forwarder. It is like socat, but handles concurrency.

popub's People

Contributors

m13253 avatar drj31 avatar 1dot75cm avatar

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.