Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Network access though a Bluetooth Access Point' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Network access though a Bluetooth Access Point
Authored by: MichelP on May 05, '03 09:05:33AM

Pushing that a little further, you could imagine networking 2 Macs (each having a Bluetooth interface) together!...
One Mac, acting as a gateway (becomming the access point), publishing its incoming serial port (like the standard Bluetooth-PDA-Sync) and running pppd to serve ppp connection.
The other Mac (client) setup a bit like described in previous hint, with an outgoing port pointing to gateway's serial port.

The beauty of that is that the gateway, could be actually sharing its ethernet/airport Internet/dialup PPP Internet connection, hence acting as a router, delivering Internet service to the client.
...still with Bluetooth bandwidth limitation tough.
;-)


More info on pppd&nat setup to share internet connection (just simple applescripts to run on the gateway Mac) on:
http://www.technohappymeal.com/archives/000070.html
(several macosxhints on the topic too, but applescripts are just one click!).
Deriving these for just a peer to peer connection, run this Applescript on the "gateway" Mac:

do shell script "sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 noauth local passive noproxyarp asyncmap 0 silent persist 192.168.126.65:192.168.126.64 &" with administrator privileges
(all in 1 line)
router will get IP 192.168.126.65, client 192.168.126.64 (change if you want other addresses)

to stop the gateway, put that into an AppleScript:
do shell script "sudo killall pppd" with administrator privileges



[ Reply to This | # ]