Live data from Hacker News

Show HN: Local development with .local domains and HTTPS

localcan.com

71–80 of 108 posts

Re: Show HN: Local development with .local domains and HTTPS

#72

> Forget editing /etc/hosts or typing 192.168.0.12! Instead, pay $19 (instead of $29!) excl. VAT for a service that does this for you! God damn, I hate this industry.

When I read this comment I knew it must be targeting MacOS users. The only reason I clicked the link is to confirm my assumption. Edit: I'm not trying to shame MacOS users. I'm just saying that Linux and MacOS users (Windows users don't use /etc/hosts so out of discussion) have very different behaviour regarding paying for software.

There is an /etc/hosts on Windows, just fyi.

Re: Show HN: Local development with .local domains and HTTPS

#73

Earlier quoted context omitted.

Well, it does a little more than that. You can type yourservice.local instead of 192.168.0.12:1234. I don't know that I'd buy this if I still had a mac, but I do think that paying for quality of life improvements can be worthwhile. For example, I do pay for a license of IntelliJ idea, even though VSCode costs $0, and I'm not even a full-time software dev.

Sure, but there are also excellent FOSS solutions for this, such as https://github.com/peterldowns/localias which has the benefit of being cross-platform.

Multiple, different solutions to the same problem, some paid, others free and/or open source? Inconceivable!

Re: Show HN: Local development with .local domains and HTTPS

#76
post #40

> Forget editing /etc/hosts or typing 192.168.0.12! Instead, pay $19 (instead of $29!) excl. VAT for a service that does this for you! God damn, I hate this industry.

And sometimes I hate the HN comment section. Obviously you’re not paying $19 for hosts file editing. Obviously! SSL cert generation is a pain in the ass, a tool that automates all of that for you is a valid tool. And I find the mDNS stuff really interesting, I do a lot of testing on mobile devices and connecting to my dev server from a phone can be really annoying. If you don’t like the price that’s fine: don’t pay i…

  pip install https.server
  python -m https.server 

Re: Show HN: Local development with .local domains and HTTPS

#77
post #8

Looks like an interesting project. What I guess is not really clear is why you'd want to do TLS for local only connections? Are the services published with the .local domain accessible from outside as well so it's like a ngrok alternative? I'm pretty sure I'm misunderstanding the value-add of having TLS for localhost connections...

Certain browser features/apis are only available when in a secure context https://www.digicert.com/blog/https-only-features-in-browser... so I imagine this might be a reason you would want it. That being said I don't know why you would pay for an application that does this but I guess I'm not the target market.

This long article helpfully forgets to mention, that localhost/loopback addresses are considered secure without https.

https://developer.mozilla.org/en-US/docs/Web/Security/Secure...

Re: Show HN: Local development with .local domains and HTTPS

#79
post #76
post #40

Earlier quoted context omitted.

And sometimes I hate the HN comment section. Obviously you’re not paying $19 for hosts file editing. Obviously! SSL cert generation is a pain in the ass, a tool that automates all of that for you is a valid tool. And I find the mDNS stuff really interesting, I do a lot of testing on mobile devices and connecting to my dev server from a phone can be really annoying. If you don’t like the price that’s fine: don’t pay i…

pip install https.server python -m https.server

I guess you must have just omitted the line where the SSL certs are generated and the mDNS is handled?

Smart Alec replies are one thing but badly thought out Smart Alec replies contribute so very little.

Re: Show HN: Local development with .local domains and HTTPS

#80
post #36

Earlier quoted context omitted.

What could you possibly hate about this? $19 is only a couple minutes worth of engineering labour. This is actually useful if you're running multiple servers on your network and don't want to remember the IPs of every single one of them. And not having to set up HTTPS for every single one of them is a plus.

Which programmers are paid $570 per hour?

If you don't take couple to mean literally two and instead use the colloquial definition of 'a handful', say 10, then you'll find there are many devs making $120 an hour.

Also you pay this once, this isn't some recurring charge every 10 minutes.

Post reply on HN