Mr.2 can help you expose local server to external network. Support both TCP/UDP, of course support HTTP.
Keep it simple, stupid.
Download | OS | Arch |
---|---|---|
mr2 | Linux | amd64 |
mr2_darwin_amd64 | MacOS | amd64 |
mr2_windows_amd64.exe | Windows | amd64 |
See releases for other platforms. Or go get github.com/txthinking/mr2/cli/mr2
.
$ mr2 server -l :9999 -p password
# Only allow partial ports, and set password on each port
$ mr2 server -l :9999 -P '5678 password' -P '6789 password1'
# Local server is 127.0.0.1:1234, expect to expose: server_address:5678
$ mr2 client -s server_address:port -p password -P 5678 -c 127.0.0.1:1234
# Local web root is /path/to/www, expect to expose: server_address:5678
$ mr2 client -s server_address:port -p password -P 5678 --clientDirectory /path/to/www
$ mr2 client -s server_address:port -p password -P 5678 -c 127.0.0.1:8080
# then
Your HTTP server in external network is: server_address:5678
$ mr2 client -s server_address:port -p password -P 5678 -c 127.0.0.1:22
# then
$ ssh -oPort=5678 user@server_address
$ mr2 client -s server_address:port -p password -P 5678 -c 127.0.0.1:53
# then
Your DNS server in external network is: server_address:5678
$ dig github.com @server_address -p 5678
$ mr2 client -s server_address:port -p password -P 5678 --clientDirectory /path/to/www
# then
A HTTP server in external network is: server_address:5678
...
Please read CONTRIBUTING.md first
This project exists thanks to all the people who contribute. [Contribute].
Become a financial contributor and help us sustain our community. [Contribute]
Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]
Licensed under The GPLv3 License