View Single Post
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#45
Originally Posted by Red X View Post
can i use my broadband pc internet via bluetooth or usb cable on n900?
Actually it's even more easy to accomplish. All you've to do is to make it works the other way round.

First you should make your Windows sharing internet. I can't give you procedures on this, as different version of Windows has different setup. You must consult Windows experts on this. Of course, it'd be much easier if your PC is running Linux.

Second, you need to pair up the PAN such that the N900 and PC is within the same PAN. It's like your PC and N900 is in the same LAN. i.e. follow the procedures up to section 4.2.

After you established the PAN, you must setup the IP of your PC as followed:

Code:
IP: 192.168.1.2
Netmask: 255.255.255.0
Gateway: 192.168.1.1
and your N900: (INSTALL rootsh before running the following scripts)
Code:
root
ifconfig bnep0 down
ifconfig bnep0 192.168.1.1 netmask 255.255.255.0 up
You can ping 192.168.1.1 from your PC or ping 192.168.1.2 from your N900 to check if the network is setup properly.

Now you must setup the default route. All intranet and internet traffic will go thru the default, therefore you must make sure no other default exist.

In your N900:
Code:
root
route add default gw 192.168.1.2 bnep0
Note now that N900 is pointing the default gateway to your PC (192.168.1.2).

Finally, you can't browse web without DNS:

Code:
root
echo nameserver 8.8.8.8 >> /etc/resolv.conf
echo nameserver 8.8.4.4 >> /etc/resolv.conf
The above example is to setup your DNS with Google's public DNS, you can replace them with the DNS of your own ISP. YOU ONLY NEED TO DO IT ONCE.

I'm in a rush, may be you'd have question with the procedure above. Nevertheless feedback and I'll help you .

Last edited by 9000; 2010-10-11 at 13:48.