Reply
Thread Tools
Posts: 958 | Thanked: 483 times | Joined on May 2010
#241
this works great with a desktop PC. how can i share this with multiple PCs?
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#242
Originally Posted by droll View Post
this works great with a desktop PC. how can i share this with multiple PCs?
On the network side yes it supports multiple devices. However, the script needs to be modified if pairing a new device created a new network interface.

Tell me if the script doesn't work when you pair an additional device into PAN, and I will resolve that with you.
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#243
this is what i do
1. connect laptop 1 to n900 via btpan
2. connect laptop 2 to n900 via btpan
3. run your script on n900

after i run your script DHCP kicks in and laptop 1 gets an IP address. however, laptop 2 never gets assigned an IP. laptop 1 can browse the internet and laptop 2 obviously fails.

help??
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#244
also, you said something about if pairing a new device created a new interface? with ifconfig, i don't see any new interface being created. i still have
a: phonet00-00
b: lo
c: gprs00-00
d: bnep0
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#245
Would you please try manually enter the ip address, network mask and gateway in laptop 2 to see if they could connect? Just in case, do you use the same ip address as in laptop 1. Say it should have 192.168.3.100, and your laptop 2 shall use 192.168.3.200, for example.
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#246
i tried it. doesn't work. seems the packets are not being routed. i was careful to ensure no IP conflicts since laptop 1 is on DHCP. and i know there's nothing wrong with the BT setup on both laptops because when i reverse the sequence then laptop 2 can surf and laptop 1 cannot.
 

The Following User Says Thank You to droll For This Useful Post:
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#247
Originally Posted by droll View Post
i tried it. doesn't work. seems the packets are not being routed. i was careful to ensure no IP conflicts since laptop 1 is on DHCP. and i know there's nothing wrong with the BT setup on both laptops because when i reverse the sequence then laptop 2 can surf and laptop 1 cannot.
Slow down a bit. Can your laptop 2 ping 192.168.3.1 after manually setting up the ip address. Have you set the netmask and gateway right. You would better show me the output of 'route' (for Linux) or 'route print' (Windows).
 

The Following User Says Thank You to 9000 For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#248
i'll test that again. right now i'm only using laptop 1.

my settings - (i modified the variables in your script)
- my DHCP range is 192.168.8.100 - 127.
- my n900 gateway ip is 192.168.8.11
- netmask is class c
- i use gprs for connection to internet

with laptop 1 fixed ip, i cannot ping 192.168.8.11 but i can surf the internet
with laptop 1 dhcp ip, i cannot ping 192.168.8.11 but i can surf the internet
i enable ssh on 192.168.8.11. from laptop 1, i can ssh into 192.168.8.11 so i know connectivity is working.

i will try later with laptop 2 and see what happens. something i find odd though is i remember i could ping 192.168.8.11 a few days ago when i started using this. hmmmm....anyway, i shall report my test with laptop 2 here later when i get to the machine. also, i will show you printout of my routing table. btw i'm using windows on both laptops.

here is route print from laptop 1
Code:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     192.168.8.11    192.168.8.121     40
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.8.0    255.255.255.0         On-link     192.168.8.121    296
    192.168.8.121  255.255.255.255         On-link     192.168.8.121    296
    192.168.8.255  255.255.255.255         On-link     192.168.8.121    296
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.8.121    296
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.8.121    296
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
      169.254.0.0      255.255.0.0    192.168.0.104       1
===========================================================================
it may be way over my head but seeing how the first entry is 0.0.0.0 for everything else and it has the lowest metric (40) so it looks like it'll work.

Last edited by droll; 2012-05-17 at 01:29.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#249
droll thank you very much for your help in testing. I would have tested it with myself but I haven't been switching on my N900 for quite sometime, but I will help you as much as I can anyway.

Probably this script could be useful to someone, but bluetooth tethering is so common nowaday and almost all smartdevices offer this functionality. Still it could help people understand local area network and tethering by reading our posts, I hope.
 
janszoon's Avatar
Posts: 224 | Thanked: 80 times | Joined on Nov 2009
#250
Originally Posted by jschan View Post

If you want to install my scripts, just install dbus-scripts if you haven't already, untar the attached tar file into a new /opt/tether directory, copy the "tether-dbus-config" file into the /etc/dbus-scripts.d directory, and restart dbus-scripts.
how do you restart dbus-scripts ?
__________________
My N900 Photo Gallery and Slideshow
 
Reply

Tags
bluetooth-pan, tethering


 
Forum Jump


All times are GMT. The time now is 21:28.