Mr.2可以帮你将本地的服务暴露到外网供访问,支持TCP/UDP,当然也包括HTTP.
Server$mr2server-l:9999-ppasswordClient#Localserveris127.0.0.1:1234,expecttoexpose:server_address:5678$mr2client-sserver_address:port-ppassword-P5678-c127.0.0.1:1234#Localwebrootis/path/to/www,expecttoexpose:server_address:5678$mr2client-sserver_address:port-ppassword-P5678--clientDiretory/path/to/www示例访问局域网HTTP服务$mr2client-sserver_address:port-ppassword-P5678-c127.0.0.1:8080#thenYourHTTPserverinexternalnetworkis:server_address:5678SSH访问本地机器$mr2client-sserver_address:port-ppassword-P5678-c127.0.0.1:22#then$ssh-oPort=5678user@server_address访问本地DNS服务器$mr2client-sserver_address:port-ppassword-P5678-c127.0.0.1:53#thenYourDNSserverinexternalnetworkis:server_address:5678$diggithub.com@server_address-p5678通过HTTP访问本地目录:$mr2client-sserver_address:port-ppassword-P5678--clientDirectory/path/to/www#thenAHTTPserverinexternalnetworkis:server_address:5678点击空白处退出提示
评论