I don't have a problem doing this, I can use my phone and connect to the data allowance from my sim card and I can also connect my phone to a wireless network. I can then plug my phone into my laptop via a usb cable and I can enable tethering from the phone. I then end up with internet connection on my laptop.
That is all well and good. However, when I click the connected connection on my phone, it comes up as 192.168.0.5 and when I check ifconfig on my laptop, it shows up as 192.168.42.209.
Why is that happening, shouldn't my laptop also be showing at 192.168.0.5 as I am using the internet connection on my laptop via the phone?
This really isn't a problem in terms of using the internet on the laptop via the phone as it works nicely. The problem is when I try to configure my home router to do some port forwarding. My router has an ip address range from 192.168.0.1-254, so I can't port forward using the 192.168.42.209.
I have tried setting up a static ip address for my laptop using the routers ip address range, i.e. I tried 192.168.0.50, and the internet stops working.
I clearly don't understand all this, why is this happening?
So basically, why is the ip address on my phone different to the ip address on my laptop even though i am connecting to the internet on my laptop via the phone, and why does my internet connection stop working on the laptop if I tried giving the laptop a static ip address within the routers ip address range?
I have an old phone with Froyo 2.2 and I have a laptop with Ubuntu 12.04