News for hackers. Stuff that matters.
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Friday April 21, 2023 @05:58PM (#35660802)
Hello all,

This is my second year of working on a project[1] with the goal of browsing the web, on an Android smartphone, without reliance on Wi-Fi or mobile data. While this concept might seem aimless, my goal was to provide a way for people in areas with limited, expensive, or censored cellular internet access a way to view the web in a basic format. I finished work on a basic client-server model last year[2], and this year, I implemented a new pseudo-distributed peer-to-peer model that allows any TxtNet Browser user to use their own smartphone to run a background server service that communicates via the user's own primary mobile number. The main advantage to this model over last year's use of the Twilio API is the fact that with an unlimited SMS plan from a consumer carrier, you will likely end up paying significantly less than the amount you would pay for Twilio credits (averaging about ~$0.50 per website). There's a lot going on with the stateless nature of SMS, GSM-7 encoding, and Brotli compression, so please ask any questions you might have!

I've also started up a test server instance running on a +1 country code phone number, so feel free to test out the app with your own smartphone. Like mentioned in the GitHub repo, please be aware that I (necessarily) have access to every phone number and associated request that is sent. Of course, anyone can host their own server instance, and if you would like to share it, feel free to get in touch so I can add the number to the repo! Also, there are likely many bugs still lurking, so feel free to report those.

[1] https://github.com/lukeaschenbrenner/TxtNet-Browser/

[2] https://news.ycombinator.com/item?id=32905496

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Friday April 21, 2023 @07:48PM (#35661769)
It looks like HN successfully killed the server, I'm on my way to investigate. Thanks all (:
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by posguy on Friday April 21, 2023 @08:49PM (#35662177)
Have you considered using T-Mobile's WebDigits ( https://webdigits.t-mobile.com ), AT&T NumberSync for computer or whatever Verizon and other carriers have to offer for handling SMS on a computer perchance?

You could also use multiple phone numbers to send SMS to avoid SMS ratelimiting. FYI most carriers consider Person to Person messaging to be below 1 message per minute and run between 40% inbound to 60% inbound messages.

One thing to watch out for is some carriers like Cellcom if I recall sell unlimited texting plans that actually have a 20,000 message cap then $0.01 per message thereafter. A cousin of mine hit this about a decade ago as she was part of many MMS groups.

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Friday April 21, 2023 @10:16PM (#35662736)
Those look like interesting options, and they're surely be more reliable than relying on the phone's own SMS capabilities, but I wasn't able to find a public API for any of those services. As far as SMS rate limiting goes, I agree that multiple numbers would be good. Perhaps if there's a demand for it, I can create a feature that switches numbers from the database on the fly as it notices some are hung up.

>FYI most carriers consider Person to Person messaging to be below 1 message per minute and run between 40% inbound to 60% inbound messages.

Yep, I've read into that a little. I wasn't able to find anything explicitly forbidding a service like this in their terms, although there's a lot of legal documents that carriers have so I could have missed it. I read that you should expect about 1 SMS/second on consumer carriers, but it seems like I'm able to get about 2-3 SMS/second in my testing.

I didn't know about carriers having an unlimited SMS threshold... I'll have to look into that, thanks for the heads up!

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by posguy on Sunday April 23, 2023 @03:18AM (#35674091)
Yeah, neither WebDigits nor other carrier offered services seem to offer a public API, it would be a matter of reverse engineering their website :c
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by shanebellone on Saturday April 22, 2023 @06:31AM (#35665085)
SMS is limited to 1 message per 3-6 seconds. The modem incidentally limits throughput.

Also, Google Fi has unlimited text/call for $20/m. Their SIM does work with USB GSM modems.

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by posguy on Sunday April 23, 2023 @03:23AM (#35674119)
GSM is not available on AT&T or Verizon and T-Mobile is ending GSM support in under a year. Right now T-Mobile's GSM is running in a 200Khz carrier in the guard bands of LTE, making it perform worse due to the narrow bandwidth which means your allocated fewer timeslots which limits message throughput, and interference from the LTE carrier directly beside it degrades signal quality as well.

Nevermind most GSM stacks crash when receiving/sending many messages quickly, they aren't designed for high throughput messaging.

Sending via a carrier's multi-device calling/texting option where you bypass their cell network and connect to their servers over the web, or using VoLTE or VoNR is going to perform much better than GSM

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Friday April 21, 2023 @10:11PM (#35662692)
The server is back up and running - it turns out that CDMA networks continue to be an issue, and the queue of WebViews was being depleted as any WebView that received a malformed string failed. I fixed that, but the string should never have made it all the way to the webview in the first place, so that was also fixed.
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by nine_k on Friday April 21, 2023 @08:19PM (#35661976)
Isn't SMS a more expensive transport usually? Wherever I've seen paid and limited SMS, they were ridiculously expensive for the amount of data transferred (e.g. in Indonesia).

Do you have a specific "target market" in mind, with cheap / unlimited SMS but censored internet access? E.g. China, Russia, Turkey?

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by rathish_g on Friday April 21, 2023 @09:50PM (#35662555)
True here in India as well. The cheapest pack offers 2GB data/ day and 100 SMS/ day for 3.5 USD per month
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Friday April 21, 2023 @10:35PM (#35662849)
I know for sure that what you're saying was true around 10 years ago. Once apps like WhatsApp began to gain popularity in some countries, though, I've seen a few examples of carriers allowing for unlimited SMS and switching to focus on charging for data, like what has happened in the US. But off the top of my head, I can't think of a specific example. I don't think that my ideal "target market" would need both cheap SMS and censored internet access; for me, those are two different applications. If your internet access is censored, even just a small amount of information could prove to be very useful. The other application is countries with cheap SMS plans but expensive data plans, which, like you pointed out, has a pretty limited application.
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by grishka on Saturday April 22, 2023 @12:09AM (#35663259)
SMS messages in Russia are expensive by default. Most carriers offer cheap-ish unlimited SMS packages but I've no idea who they're for. Or how unlimited they really are.

As far as censorship goes, a VPN is better by all metrics than this.

Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by lukeasch21 on Saturday April 22, 2023 @12:32AM (#35663351)
Absolutely - this isn't a VPN replacement, especially with all the limitations it has. It's more of an alternative to cases in which a VPN might not work (or work well) depending on the situation.
Re:Show HN: TxtNet Browser – Browse the Web over SMS, No Wi-... by grishka on Saturday April 22, 2023 @01:50AM (#35663743)
Russian internet censorship is very simple. They don't seem to be using DPI to target VPN protocols at all, instead trying to block IPs/subnets of known commercial VPN providers. Blocking IPs, subnets, and domains is the primary operating mode of Roskomnadzor.

There allegedly is DPI, but it only comes into play as an extra measure against things like domain fronting, proxies, and plaintext HTTP. It'd look at the SNI and inject a RST packet to drop the connection. As it does not even try to implement TCP, analyzing each IP packet in isolation, there are various interesting utilities[1] that mess with it by, for example, splitting the TLS ClientHello into two TCP packets in the middle of the domain name.

[1] https://github.com/ValdikSS/GoodbyeDPI