Author Topic: Sharing Mac's Internet Connection Via Bluetooth?  (Read 17064 times)

icruise

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Sharing Mac's Internet Connection Via Bluetooth?
« on: September 18, 2005, 06:13:16 am »
I have some applescripts that will allow me to share my Mac's internet connection via bluetooth (basically rerouting the Airport or Ethernet connection so that it can also be used with a bluetooth device). This works fine with my Palm. I set up a bluetooth connection as detailed on this page and it works fine. (I have attached the scripts to this post because the web site that originally created them is apparently no longer around).

What I want to know is, how can I connect to my Mac using my Zaurus to surf the Internet via Bluetooth in the same way? I've gotten part of the way. Using the instructions from the OESF Bluetooth How-To I was able to set up a connection to the Mac, but I'm not sure what to put in the file under /etc/ppp/peers. Does anyone know what the format for this file needs to be? After some playing with the addresses at the bottom of the file, I can make an apparently successful connection to the Mac, but when I try to use the Internet, it doesn't seem to be able to use the DNS server, and so can't actually access anything. I also can't ping anything on the network, including the Mac, so I'm not sure if I'm even connecting properly. Any ideas?

icruise

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Sharing Mac's Internet Connection Via Bluetooth?
« Reply #1 on: September 27, 2005, 06:30:15 am »
Well, it turns out that all I had to do was use the sample Linux script from etc/ppp/peers/ and delete the IP addresses from the bottom.

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Sharing Mac's Internet Connection Via Bluetooth?
« Reply #2 on: March 04, 2008, 09:51:27 pm »
well been mulling this over for a bit, got a ppp connection going,
on the mac:
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
   inet 10.189.66.36 --> 10.0.1.201 netmask 0xfffffe00
on the z:
ppp0
inet addr: 10.0.0.201 P-t-P:10.189.66.36

yet can't ping google, any idea's will be much appreciated.

this is the script for the mac:
do shell script "sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 noauth local passive proxyarp asyncmap 0 silent persist :10.0.1.201 &" with administrator privileges
do shell script "sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1"
do shell script "sudo ifconfig ppp0 up"


and I am using the BT-GMRS script in /etc/ppp/peers/


Almost there I think....
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sharing Mac's Internet Connection Via Bluetooth?
« Reply #3 on: March 05, 2008, 02:36:43 am »
Quote from: bam
well been mulling this over for a bit, got a ppp connection going,
on the mac:
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
   inet 10.189.66.36 --> 10.0.1.201 netmask 0xfffffe00
on the z:
ppp0
inet addr: 10.0.0.201 P-t-P:10.189.66.36

yet can't ping google, any idea's will be much appreciated.

this is the script for the mac:
do shell script "sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 noauth local passive proxyarp asyncmap 0 silent persist :10.0.1.201 &" with administrator privileges
do shell script "sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1"
do shell script "sudo ifconfig ppp0 up"


and I am using the BT-GMRS script in /etc/ppp/peers/


Almost there I think....
It is almost the same as http://wiki.openmoko.org/wiki/MacOS_X#Maki...th_Access_Point - which is also "almost there" but does not really work...

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Sharing Mac's Internet Connection Via Bluetooth?
« Reply #4 on: March 06, 2008, 08:13:24 pm »
lol, this must be similiar to almost beating your head against the wall, but still feeling the pain......perhaps another distro will help...
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder