4 ms·
You could add a tunnel via iptables to just route one port on localhost to another ip
by nhumrich 7y ago
You could add a tunnel via iptables to just route one port on localhost to another ip
- klodolph 7y agoiptables on your phone? I think you would need to root your phone, if it's Android.
- lucb1e 7y agoI think it's not unreasonable for a techie to be the admin of their own phone. (I still don't get how this is an unpopular opinion.)
- deleted 7y ago[deleted]
- klodolph 7y agoI also think it’s not unreasonable to not want to have root access to your phone.
- untog 7y ago> (I still don't get how this is an unpopular opinion.) Not unpopular, just unrealistic. You can't do it on an iPhone, and if you're doing local web development you really ought to be checking it on an iPhone.
- rswail 7y agoIf you're doing local web development, then running the iOS simulator will give you the necessary Safari iOS Web view controls.
- untog 7y agoIt won't get you the necessary touch interactions if you're doing something that uses them, though. Broadly speaking, you want to test on the actual device your users are using, not an approximation of one.
- chipperyman573 7y agoIf you have a OnePlus (which come more or less rooted) or a Samsung (Which has a lot of community support), you can probably root it pretty easily. But a lot of other phones lack the manufacturer's blessing or the community's support, leaving you SOL unless you can find an exploit yourself. Also... iphone?
- kalleboo 7y agoAs I get older and get other responsibilities, I want to be admin of fewer and fewer things. Same reason I replaced my Linux fileserver with a Synology. I'll let someone else stay on top of the security issue du jour.
- Groxx 7y agoProbably possible with a local VPN on android? I believe those can do anything they please.
- numtel 7y agoNo need to root, with android in developer mode, run this to forward localhost:3000 to the same port on the phone. > adb reverse tcp:3000 tcp:3000