News for hackers. Stuff that matters.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by jeroenhd on Saturday August 12, 2023 @11:23AM (#37101102)
Apps can already open ports and with the HTTP DNS record arbitrary ports can be used to serve http/3 content. Services like RDP and several types of VPN server all connect to unprivileged ports any app can listen on.

There should be a separate permission for listening on standard, reserved ports (anything in the IANA docs for all I care) that should require manual consent, like with location access. In fact, I think there should be a retractable permission for any kind of remotely accessible port binding. The fact any calculator app can start a VPN server on my phone without my knowledge isn't good! That doesn't mean providing any type of service is inherently bad, though.

For instance, there are tons of phone <=> desktop sync apps (My Phone on Windows, KDE Connect on Linux/Windows/Mac) that constantly communicate between each other. Why should your phone always be the one to initiate that direct connection? Why should we rely on cloud servers when mutually authenticated SSH is already doing every bit of protection we could possibly need? My phone is half a meter away from my computer, it shouldn't need to be this difficult!

Re:Every Phone Should Be Able to Run Personal Website – Roha... by theamk on Saturday August 12, 2023 @11:40AM (#37101282)
* * *
Re:Every Phone Should Be Able to Run Personal Website – Roha... by kroltan on Saturday August 12, 2023 @11:46AM (#37101347)
> HTTP DNS record

Can you tell me more about that?

I know about SRV records from Minecraft (of all things!) for a similar purpose, can you point me towards a reference of what is this about? Wikipedia fails me.

Re:Every Phone Should Be Able to Run Personal Website – Roha... by quectophoton on Saturday August 12, 2023 @02:50PM (#37103085)
You can check this post from Cloudflare[1], and from there you can reach the IETF draft[2].

[1]: https://blog.cloudflare.com/speeding-up-https-and-http-3-neg...

[2]: Current version is https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-...

Re:Every Phone Should Be Able to Run Personal Website – Roha... by yjftsjthsd-h on Saturday August 12, 2023 @05:34PM (#37104445)
For anyone else looking: I don't think the cloudflare post says so, but the IETF draft does include "port" as an optional thing that SRVB records can include so we might finally get support for that in browsers:)
Re:Every Phone Should Be Able to Run Personal Website – Roha... by yjftsjthsd-h on Saturday August 12, 2023 @05:29PM (#37104402)
> My phone is half a meter away from my computer, it shouldn't need to be this difficult!

FWIW, that's possible today on Android (not necessarily tomorrow, not necessarily on iOS) - I can and do regularly move files around with rsync/scp courtesy of termux, either by running the command on the phone or just running sshd on the phone (which does, in my setup, need to be manually started; I don't know if that's inherent or could be changed) and then running the transfer from another machine.