We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-10-15 13:27:31 +0200 |
Hi all, at the moment I have Sailfish OS on my Nexus 4 (I think I'll buy a Jolla later). I usually connect the phone with usb cable to the PC (Slackware Linux) and use the PC internet connection to allow the phone going to internet.
This is what I do after connecting the phone (USB cable):
(To the PC) su ifconfig usb0 192.168.2.12 sh /etc/rc.d/rc.ip_forward start iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
(to the phone after connecting via ssh) devel-su route add default gw 192.168.2.12 echo "nameserver 8.8.8.8" > /etc/resolv.conf
This way my phone has an internet connection without connecting to mobile network.
The problem is that some app doesn't go to internet without mobile connection. For example browser works fine and I can access website using PC connection while mail client app always require me to connect to mobile network even if already connected via usb.
What so you think about? Is there a possible solution?
Thanks
2 | No.2 Revision |
Hi all, at the moment I have Sailfish OS on my Nexus 4 (I think I'll buy a Jolla later). I usually connect the phone with usb cable to the PC (Slackware Linux) and use the PC internet connection to allow the phone going to internet.
This is what I do after connecting the phone (USB cable):
(To the PC)
su
PC)
su
ifconfig usb0 192.168.2.12
192.168.2.12
sh /etc/rc.d/rc.ip_forward start
start
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
(to the phone after connecting via ssh)
devel-su
ssh)
devel-su
route add default gw 192.168.2.12
192.168.2.12
echo "nameserver 8.8.8.8" > /etc/resolv.conf
This way my phone has an internet connection without connecting to mobile network.
The problem is that some app doesn't go to internet without mobile connection. For example browser works fine and I can access website using PC connection while mail client app always require me to connect to mobile network even if already connected via usb.
What so you think about? Is there a possible solution?
Thanks
3 | No.3 Revision |
Hi all, at the moment I have Sailfish OS on my Nexus 4 (I think I'll buy a Jolla later). I usually connect the phone with usb cable to the PC (Slackware Linux) and use the PC internet connection to allow the phone going to internet.
This is what I do after connecting the phone (USB cable):
(To the PC)
su
ifconfig usb0 192.168.2.12
sh /etc/rc.d/rc.ip_forward start
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
(to the phone after connecting via ssh)
devel-su
route add default gw 192.168.2.12
echo "nameserver 8.8.8.8" > /etc/resolv.conf
This way my phone has an internet connection without connecting to mobile network.
The problem is that some app doesn't go to internet without mobile connection. For example browser works fine and I can access website using PC connection while mail client app always require me to connect to mobile network even if already connected via usb.
What so you think about? Is there a possible solution?
Thanks
4 | No.4 Revision |
Hi all, at the moment I have Sailfish OS on my Nexus 4 (I think I'll buy a Jolla later). I usually connect the phone with usb cable to the PC (Slackware Linux) and use the PC internet connection to allow the phone going to internet.
This is what I do after connecting the phone (USB cable):
(To the PC)
su
On the PC:
su
ifconfig usb0 192.168.2.12 192.168.2.12
sh /etc/rc.d/rc.ip_forward start start
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE (to
MASQUERADE
On the phone after connecting via ssh)
devel-su
SSH:
devel-su
route add default gw 192.168.2.12 192.168.2.12
echo "nameserver 8.8.8.8" > /etc/resolv.conf/etc/resolv.conf
This way my phone has an internet connection without connecting to mobile network.
The problem is that some app doesn't go to internet without mobile connection. For example browser works fine and I can access website using PC connection while mail client app always require me to connect to mobile network even if already connected via usb.
What so you think about? Is there a possible solution?
Thanks