Sign inSign up

chenhw2/mr2

By chenhw2

Updated about 5 years ago

Expose local server to external network

Image
0

469

chenhw2/mr2 repository overview

Source
Thanks
Usage
$ docker pull chenhw2/mr2

$ docker run -d \
    -e "ARGS=server -l :6060 -p password" \
    -p 6060:6060/tcp -p 6060:6060/udp \
    chenhw2/mr2
ENV
ENV ARGS="server -l :6060 -p password"
HELP
NAME:
   mr2 server - Run as server mode

USAGE:
   mr2 server [command options] [arguments...]

OPTIONS:
   --listen value, -l value        Listen address, like: ':9999'
   --password value, -p value      Password
   --portPassword value, -P value  Only allow this port and password, like '1000 password', repeated. If you specify this parameter, --password will be ignored
   --help, -h                      show help (default: false)


NAME:
   mr2 client - Run as client mode

USAGE:
   mr2 client [command options] [arguments...]

OPTIONS:
   --server value, -s value        Server address, like: 1.2.3.4:9999
   --password value, -p value      Password
   --serverPort value              Server port you want to use (default: 0)
   --clientServer value, -c value  Client TCP and/or UDP server address, like: 127.0.0.1:8888
   --clientDirectory value         Client directory, like: /path/to/www. If you specify this parameter, --clientServer will be ignored
   --clientPort value              Work with --clientDirectory (default: 0)
   --tcpTimeout value              connection tcp keepalive timeout (s) (default: 60)
   --tcpDeadline value             connection deadline time (s) (default: 0)
   --udpDeadline value             connection deadline time (s) (default: 60)
   --help, -h                      show help (default: false)

Tag summary

Content type

Image

Digest

Size

8.7 MB

Last updated

about 5 years ago

docker pull chenhw2/mr2