TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Expose local server. Support both TCP/UDP, of course support HTTP

68 pointsby txthinkingover 5 years ago

9 comments

pcr910303over 5 years ago
Ok, I&#x27;m not sure about this, but looking at the explanation it looks like something like ngrok[0], serveo[1] or Argo Tunnel[2].<p>So basically it&#x27;s a program for server &amp; client that allows exposing a local server to the net (usually) for development purposes.<p>Install mr2 on the server &amp; client, you can use the mr2 program in the client to expose the web server running in the client through the server (with mr2 installed).<p>[0] <a href="https:&#x2F;&#x2F;ngrok.com" rel="nofollow">https:&#x2F;&#x2F;ngrok.com</a><p>[1] <a href="http:&#x2F;&#x2F;serveo.net" rel="nofollow">http:&#x2F;&#x2F;serveo.net</a><p>[2] <a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;argo-tunnel&#x2F;quickstart&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;argo-tunnel&#x2F;quickstart&#x2F;</a>
评论 #21596497 未加载
评论 #21597998 未加载
评论 #21598712 未加载
sneakover 5 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;txthinking&#x2F;x&#x2F;blob&#x2F;master&#x2F;cryptkv.go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;txthinking&#x2F;x&#x2F;blob&#x2F;master&#x2F;cryptkv.go</a><p>This is in the library it pulls in.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;txthinking&#x2F;mr2&#x2F;blob&#x2F;master&#x2F;client.go#L47" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;txthinking&#x2F;mr2&#x2F;blob&#x2F;master&#x2F;client.go#L47</a><p>Homebrew cryptosystem.<p>On a quick glance, it appears to be using a string password from the command line directly as an AES key, in CFB mode, with no authentication.<p>tl;dr: this is the cryptographic equivalent of that bridge in Florida.
protomikronover 5 years ago
How does that differ from<p><pre><code> $ ssh -R2345:localhost:80 user@example.com </code></pre> And then going to example.com:2345 (if you want to e.g. forward HTTP)? I mean you need a remote node anyway for that to work?
评论 #21597160 未加载
c0nsumerover 5 years ago
Could you explain the goal of this, and how it actually attains this? It just doesn&#x27;t seem clear what the client and server are here, nor what the &quot;local server&quot; is behind that needs piercing.<p>Is this to, say, expose a server sitting behind a NAT to the rest of the world, or...?
评论 #21596325 未加载
metalliqazover 5 years ago
I find that documentation very difficult to understand.
teddyhover 5 years ago
Why not start a Tor Onion service instead? I believe there are similar turn-key solutions for that as well.
评论 #21596715 未加载
评论 #21596607 未加载
gwbas1cover 5 years ago
Can this be a library instead of a standalone executable?<p>I can imagine a lot of end-user P2P applications where this, as a library, would be a great help.
评论 #21606837 未加载
alexellisukover 5 years ago
Looks like this is using GPL - if companies want something they can use for commercial purposes, checkout <a href="https:&#x2F;&#x2F;inlets.dev" rel="nofollow">https:&#x2F;&#x2F;inlets.dev</a> which is on the CNFC Landscape and also has a deep Kubernetes integration through its operator. <a href="https:&#x2F;&#x2F;github.com&#x2F;inlets&#x2F;inlets-operator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;inlets&#x2F;inlets-operator</a>
评论 #21598272 未加载
评论 #21598396 未加载
fulafelover 5 years ago
I think the description would be clearer if it talked about port forwarding from a remote server to your local machine. After all &quot;expose local server&quot; is normally just about binding to 0.0.0.0 instead of loopback.