News for hackers. Stuff that matters.
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by kekub on Thursday July 11, 2019 @09:52AM (#20411493)
I am using

> ssh -R 8080:localhost:8080 my.server.com

and have Caddy webserver running on my server (my.server.com) which is configured to proxy any requests to localhost:8080. It adds LetsEncrypt and makes sharing local web projects easy.

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by alexellisuk on Thursday July 11, 2019 @12:07PM (#20412657)
Purpose-built UX, Docker images, Kubernetes support, future plans to add LetsEncrypt automation. There are ways to make "ssh" work through a corporate proxy, but normally it's banned. Websockets over HTTPS usually goes through without being blocked.

Multiple upstream sites are supported with ease as well as multiple exit node domains. If SSH is working for your use-case, then I'd say stick with it.

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by mbrumlow on Thursday July 11, 2019 @12:43PM (#20413032)
At first I said why websockets, when you are using go you could simply had done TCP sockets. But then I realize websockets is probably the right choice. This allows you a single listening port for both inbound and outbound connections as you can simply route /api/proxy or proxy our whatever you are using as your endpoint.

At first I did not like it, and responded like others, over kill for something many people can do (or are doing) without the aid of a fancy tool like this. But then I realized trying to covey to others who are not system programmers how to setup something and realized I would rather spend my time doing something else and just point them to a tool.

Good job on this!

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by com2kid on Thursday July 11, 2019 @12:22PM (#20412832)
That doesn't really scale to a team though, esp for tools that have a common configuration (e.g. localhost ports).

Some sort of tooling to point "this machine to this VM" becomes needed.

Then for full stack development it is even harder, as the app has to have this endpoint injected into it.

It is all possible, just a pain. Writing a mobile app (https only!) that talks to a service I am writing has a rather annoying set of minimal requirements to get up and running. (This may be why Firebase Functions are so popular, super easy to go from nothing to deployed endpoints in just a few minutes.)

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by alexellisuk on Thursday July 11, 2019 @03:35PM (#20414892)
You can run this on Kubernetes for multi-team and multiple teams can share the same exit-node.
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by macawfish on Thursday July 11, 2019 @09:56AM (#20411517)
Yes! I just realized that you can do this without any fancy tools!
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by davnicwil on Thursday July 11, 2019 @10:11AM (#20411617)
Well, the catch is you have to set up and maintain your own server running a proxy :-)

I don't think these tools are really claiming to sell anything fancy that you can't fairly straightforwardly do yourself - what you're buying is convenience (saved time and focus) - just pay for this tool and you're ready to go, within minutes.

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by macawfish on Thursday July 11, 2019 @10:57AM (#20411987)
Recently I spent an hour trying to get a bunch of "self hosted ngrok alternatives" to work and couldn't figure out any of them. Either I couldn't get them to compile or their documentation had me seriously fooled.

Then I found out how easy it was to set up ssh reverse tunneling. Sshd + systemd turned out to be all I needed for a pretty stable and persistent connection from anywhere. I was so satisfied to find that the most common tools out there could already handle this. Yay!

Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by alexellisuk on Thursday July 11, 2019 @12:08PM (#20412673)
Give inlets a shot if you get time and let me know how you think it compares.
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by macawfish on Friday July 12, 2019 @04:15AM (#20419137)
Seems like it could really be convenient for dev work... I'll keep it in mind in the future!
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by eeZah7Ux on Thursday July 11, 2019 @11:17AM (#20412166)
Very often the simplest and well-tested tools are more reliable and quicker to use together than yet another fancy tool.
Re:Show HN: Inlets 2.0 – expose your local endpoints to the ... by alexellisuk on Thursday July 11, 2019 @12:08PM (#20412668)
"just pay for this tool" - it's free, OSS and accepts contributions.