10 ms·
Nobody is saying that everyone should host websites on your phone. The author is saying you should be able to, if you so choose. Android and iOS put restriction
by jeroenhd 3y ago
Nobody is saying that everyone should host websites on your phone. The author is saying you should be able to, if you so choose. Android and iOS put restrictions on what applications on a phone are able to do, often for arbitrary reasons.
You can't hack a web server in your closet to run on port 80 without jailbreaking your phone/unlocking the bootloader and rooting your phone, and I can't really think of a reason why that should be. It's not as it Android and iOS come with important http(s) servers out of the box, why shouldn't port 80/443 be available to apps?
- FireInsight 3y agoUnrestrained webservers on phones is an edge case that would certainly be abused by all sorts of crapware while being a very uncommon usecase for mobile devices at all.
- nulld3v 3y agoApps can already do this mostly and it's caused absolutely no issues. In fact, it's often used for ad-blocking. You just can't bind to port 80/443.
- MichaelZuo 3y agoIt's true that there will always be unscrupulous actors but there are many ways to restrict or punish them already, I don't see why they would necessarily overwhelm existing methods.
- jeroenhd 3y agoApps 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!
- theamk 3y agoYou don't need reserved ports for the custom protocos.. And most of them, like sync apps, use high port anyway.
- kroltan 3y ago> 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.
- quectophoton 3y agoYou 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-negotiation-with-dns/ 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-https-12 https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-...
- yjftsjthsd-h 3y agoFor 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:)
- yjftsjthsd-h 3y ago> 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.
- deleted 3y ago[deleted]
- flangola7 3y agoSo? That's up to the user to decide.
- duggan 3y agoSure, if the user can build their own phone. Otherwise they're competing with a lot of other people interested in what the phone should and should not do. If they own a hammer, they can do what they like with a hammer, but a phone is not a hammer. It's a complex arrangement of molecules, licenses and competing group interests.
- convolvatron 3y agothere is nothing fundamental to differentiate a hammer from a phone except complexity. I'm sure if someone found a way to shove ads and place restrictions on the use of your hammer they would.
- duggan 3y agoYeah, it’s the complexity that makes the difference. There’s nothing but that to differentiate anything. You, a phone, a G class star, a comedy special on DVD. All “just” complex arrangements of matter. People make a big deal out of those differences though, go figure!
- flangola7 3y agoA phone is physical tool owned by a person that fits in their hands. It's not as dissimilar from a hammer as you have tried to portray.
- duggan 3y agoWordplay. I can hold your hand in my hand, is it similar to a phone? Otherwise your line of reasoning boils down to “it exists.”
- soulofmischief 3y agoI'm assuming the best intentions from you but I'd like to point out two things: 1. When discussing human rights (which apply to technological freedoms) reducing a need to "an edge case" is the basis of marginalization, defined as "treatment of a person, group, or concept as insignificant or peripheral". Therefore, it is never appropriate to rely on such language to prove a point, especially when we are discussing software which had to go out of its way to restrict freedoms. 2. It's an incredibly slippery slope to use "crapware" as a justification for reducing the freedoms of the individual. Criminals will find a way, do not create a hostile user experience.
- _Algernon_ 3y agoIs the right of a handful of people to run a web server on their phone more important than the right of millions of "unsophisticated" users to not be scammed / abused by malware? Since it's inception smart phones have been a consumer platform, used for consuming content. The platform for tinkerers already exists. It's called a PC with Linux installed. Every platform does not need to cater to your needs.
- froggit 3y agoPC is overkill for this case. A raspberry pi would get the job done while saving energy and equipment costs.
- _Algernon_ 3y agoA raspberry pi certainly fits the definition of a "Personal Computer".
- hunter2_ 3y agoThe whole "Mac versus PC" thing somewhat solidified the notion that PC refers to x86. Raspberry Pi uses ARM.
- 3y ago
- extraduder_ire 3y ago> why shouldn't port 80/443 be available to apps Because they're < 1024, I guess. Anywhere I've seen besides windows needs you to be root, or have some other specific permission to listen on that port. Not that I agree with it, but it is the existing status quo.
- jeroenhd 3y agoI know about privileged ports, they just don't make sense anymore. They were a good idea on a timeshared system with groups of students logging into their own shells because equivalent personal computers were unaffordable. These days, computers are used by one, maybe two or three people. If I, the only user of my phone, decide I want to use port 80, why can't I? Put this stuff behind a special privilege for all I care.
- justsomeadvice0 3y agoIIRC macOS got rid of privileged ports for these reasons. Dunno about iOS... But in any case what cell provider is going to let you handle inbound traffic? Most of the wifi networks you are on are NAT'd, etc. At best you'd probably want an outbound persistent tunnel that is "terminated" by a relay elsewhere. At that point you might as well just have the relay host the thing.
- toast0 3y agoYou're not getting inbound connections on IPv4 without a fight, although, I remember when you used to be able to pay mobile carriers to get a public IPv4 address that might have also been static(!) for VPN purposes. But it's not uncommon for carriers to give you a whole /64 on IPv6, and for that to be full proper connectivity (maybe they block smtp and smb, that's very common). Yeah, IPv6 isn't everywhere, but if you have it on your phone and everywhere you want to access you phone from...
- maccard 3y agoThat's true even with a residential ISP though. It's no harder than serving off a laptop on android.
- tmpX7dMeXU 3y agoI chose to purchase a phone that can’t do this. I’m fine with that. I’d rather my phone be how it is. I don’t need some nerd fighting for me in some imagined battle. I am incredibly sick of this line of reasoning. Anyone who spends any time arguing this point quite clearly has too much time on their hands and no real problems. It’s utterly cringey. Leave me be.
- saagarjha 3y agoI fail to see how this has anything to do with what your personal preferences are?
- nulld3v 3y ago[flagged]
- smoldesu 3y agoI come baring bad news; your smartphone can host webpages whether you like it or not. Worse yet, it can use it's browser to render arbitrary pages of data (detestable feature) and even execute code when given permission by the kernel. Very scary stuff. Thankfully, nobody will be forcing you to use this feature; it shouldn't bother someone who ignores it. It is a feature of your phone though, unless you're daily-driving a pager or 2G Nokia. Hopefully this helps you make peace with the "utterly cringey" reality of modern computing.
- behringer 3y agoYou fail to see the irony that the only reason you have it so good with your phone software is because of the pushback of open source and open standards the nerds have had to always fight for.
- relativ575 3y agoThe only reason? Tech people here have some very self-flattery view. The main reason, and I wouldn't call it the only reason, the phone being an essential item is because it meets the needs of average consumers, not just for the tiny tech population. If a website is what everyone wants, then trust me it will be front and center in any phone ads, not the camera.
- seiferteric 3y agoActually I thought this was silly, but if your service provider provided and upstream cdn/cache, I think it could work pretty well. So when you are out of service area, they simply hit the cache.
- crazygringo 3y agoThen there's no reason to have it on your phone in the first place. There's no real difference between a site on a server and a cache on a server from any kind of philosophical decentralization point of view. Just put the thing on the server in the first place and forget about the phone entirely.
- dTal 3y agoThe argument is that control can't be taken away from you, I suppose. I argue in another comment[0] that peer-caching could mitigate unreliability, but that still leaves the question of how you maintain ownership if other entities are allowed to serve it on your behalf. Is it possible to make yourself reliably globally routable without trusting a third party, or needing their permission? [0] https://news.ycombinator.com/item?id=37103721 https://news.ycombinator.com/item?id=37103721
- 2OEH8eoCRo0 3y agoHot take: Android is not an operating system. Go install AOSP and see how useless your device becomes. An OS is more than a kernel and filesystem, it's also a basic set of userspace utilities and functionality. Last time I installed AOSP on a device- wifi wasn't even supported. And Google is removing messaging from AOSP. Phone OS my ass, it's useless without 3rd party cruft that isn't available to end users.
- yjftsjthsd-h 3y agoFor the longest time (maybe still but I'm out of that loop), installing Windows from a DVD left you without wifi, too; was it not an operating system?
- 2OEH8eoCRo0 3y agoThe drivers could be acquired and installed either via CD with the hardware or found on the web. Where are my provided wifi or cellular drivers for my phone?
- jeroenhd 3y agoAOSP contains a music player, a gallery, a camera app, a web browser, a calendar and some dev tools. Sure, they haven't been updated for a few years, but that doesn't mean they're not there. WiFi and LTE work just fine as long as your manufacturer uses hardware supported by normal drivers. That said, office supplies don't make something an operating system. If all it had was a launcher, it would still be an operating system, because you can install the apps you want onto it. I don't know why your device didn't have WiFi, ut it's not the norm. Standard AOSP images should use the vendor partition to load additional drivers if the ones built into the Android kernel don't suffice.
- petabytes 3y agoI remember running a web server on an old tablet several years ago. What changed? Is it not possible on newer devices?
- TZubiri 3y agoThe assumption that an operating system should allow the user to do everything is quite restricting. Under this view, every device should be a standard-issue military-grade turing-machine. There would be no individuality, every device would be the same GPL licensed Free Operating System.
- donkeybeer 3y agoIs it real individuality or fake individuality? All those devices are already general purpose Turing machines that the manufacturers go to great effort and lengths to restrict, writing millions of lines of code, developing cryptographic systems etc to lock them down. A turing machine can run anything, the 'individuality' is just a fake restriction. There is nothing stopping you from running a general piece of software or os on any hardware that meets some minimum requirements. No reason android couldn't run on an 'iphone hardware' or ios on an 'android hardware'. Not the quotes I used, the hardware is just some general purposes CPUs, RAMs etc there is nothing magically 'iPhone' or 'Android' about it. Almost all differences among the various modern phones, laptops are mere software, the software is where the individuality is. Hardware differences exist in degree rarely in kind (megapixels of cameras, gb of ram etc) and even if some new type of hardware or sensor comes out its just a matter of developing a proper interface for the cpu, os etc.
- donkeybeer 3y agoMy point could also be summarized as there is a difference between mere neglect and active effort to block the user from making use of the hardware.
- ehutch79 3y agoLiterally when the title indicates. Why would phones need to run a web server if that’s not the point?
- jeroenhd 3y agoThe point is not that everyone should, it's that some people who want to, should be able to. Phones are quite powerful and can be excellent web servers on a budget.
- ehutch79 3y agoBut now you’re talking about a niche enough audience, that existing ways of running a web server on your phone are fine, and they’ll jump over the proverbial hurdle. This still doesn’t remove the issue with running a server via mobile connectivity. Especially when there’s free options, or inexpensive options that won’t run up your mobile data bills.
- beebeepka 3y agoIt's clear you're against the very idea and you are just coming up with ways why it shouldn't be done. Do phones not have WiFi? Yeah, it's not ethernet but you intentionally made it sound like mobile data is the only option.
- paulcole 3y ago> some people who want to, should be able to And this is a terrible argument IMO. The idea of “It’s my device, it’s my right to do exactly what I want with it” is beyond dead and buried. There are lots of things people want to do with their devices that Apple doesn’t let them do. That’s literally been Apple’s philosophy for decades and at this point it shouldn’t be surprising. Buy the Pinephone if you absolutely have some arcane use-case you can’t live without.
- jeroenhd 3y agoWho said anything about Apple? Apple actually allows hosting content on port 80/443/22/whatever. Also, "I don't need this so nobody should have it" is a terrible take.
- dividuum 3y agoProbably terrible data point, but running "nc -l -p 80" within the iSH shell app on iOS opens port 80 and is reachable from a desktop machine in the local network. iSH has requested the "Local network" permission at some point.
- jeroenhd 3y agoThat's interesting, thanks for the information! Refreshing to see Apple provide to be the less restrictive app platform!
- LeoNatan25 3y agoEven if you run the server, it will die if the app goes to background or the screen turns off. Hardly practical. Just because a port is open does not mean it’s “less restrictive”.
- dividuum 3y agoI apologize in advance: 'cat /dev/location > /dev/null & python -m SimpleHTTPServer 80'. Totally crude but works, even when turning off the display.
- LeoNatan25 3y agoThis just slightly extends the background runtime, not allow indefinite background execution. I don't think ish has the navigation background mode (or audio for that matter) enabled, as it won't be allowed by Apple.
- NavinF 3y agoThere are workarounds for that: https://developer.apple.com/documentation/xcode/configuring-background-execution-modes https://developer.apple.com/documentation/xcode/configuring-... Eg if that terminal app is capable of playing audio, it can play silence to keep the app alive forever in the background. I don't mean to imply that this is practical. Any solution would still destroy battery life.
- skybrian 3y agoWhy run a website on your phone when you could get a Raspberry Pi instead? This idea that computing devices should be general-purpose is left over from when computers were expensive. Repurposing old hardware is cool too, but when you’re not using it as a phone anymore, you could run a different OS.
- Dalewyn 3y ago>Android and iOS put restrictions on what applications on a phone are able to do, often for arbitrary reasons. When people complain about how Windows (and for that matter also Linux and BSD, et al.) don't lock their environments down, they should remember it's because both devs and users alike appreciate and respect the freedom to do whatever the hell we want on our computers. Great power begets great responsibility. Android and iOS place next to no responsibility on the devs and users, but likewise also none of the power.
- lofaszvanitt 3y agoThe author is saying you should be able to, --- But why?