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


Click here to return to the 'Create a persistent BlueTooth to Address Book connection' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a persistent BlueTooth to Address Book connection
Authored by: rouet on Jun 20, '03 08:21:55AM

that's the solution for a P800

that's the shell commands :

sudo sh -c "cd ~;nohup /System/Library/SyncServices/SymbianConduit.bundle/Contents/Resources/mRouter -a 00-0a-d9-5d-40-df -t 30 -p800 >~/mrouter.log 2>&1 &"
sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1
sudo /usr/sbin/natd -interface en0 -use_sockets -same_ports -dynamic -clamp_mss
sudo /sbin/ipfw add divert natd ip from any to any via en0
sudo named

replace 00-0a-d9-5d-40-df by the p800 mac address
replace en0 by en1 for airport

to stop it :

sudo killall named
sudo /sbin/ipfw -f flush
sudo killall natd
sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=0
sudo killall mRouter
sleep 15
sudo rm -f ~/mrouter*

everything is ok now



[ Reply to This | # ]
Create a persistent BlueTooth to Address Book connection
Authored by: schwa23 on Jun 20, '03 08:52:16PM

Still not working on my end (so close!). Where did you get that -p800 flag? Is there a similar one for the Nokia 3650?



[ Reply to This | # ]
Create a persistent BlueTooth to Address Book connection
Authored by: rouet on Jun 21, '03 04:25:04AM

hi

i copy the line which is launched by isync during the processus of synchronisation.
you can do the same thing with your phone.

jr



[ Reply to This | # ]
Create a persistent BlueTooth to Address Book connection
Authored by: soundbringer on Jun 26, '03 03:22:38PM

Managed to get it working with the 3650 and G4 laptop (D-Link)
here's the log: just change the phone address and phone name (Bart here)

Start Connection:

sudo sh -c "cd ~;nohup /System/Library/SyncServices/SymbianConduit.bundle/Contents/Resources/mRouter -a 00-60-57-44-a6-cc -t 30 -Bart>~/mrouter.log 2>&1 &"
sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1
sudo /usr/sbin/natd -interface en0 -use_sockets -same_ports -dynamic -clamp_mss
sudo /sbin/ipfw add divert natd ip from any to any via en0
00100 divert 8668 ip from any to any via en0
sudo named
/System/Library/SyncServices/SymbianConduit.bundle/Contents/Resources/mRouter -a 00-60-57-44-a6-cc
Thu Jun 26 19:16:53 2003 : Using interface ppp1
Thu Jun 26 19:16:53 2003 : Connect: ppp1 <--> /dev/tty.mRouter
Thu Jun 26 19:17:04 2003 : local IP address 169.254.1.68
Thu Jun 26 19:17:04 2003 : remote IP address 169.254.1.5


to stop it :

sudo killall named
sudo /sbin/ipfw -f flush
sudo killall natd
sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=0
sudo killall mRouter
sleep 15
sudo rm -f ~/mrouter*

---
Check my Virtual reality in Full Screen and some Manchester electronic classics written by Soundbringer at www.soundbringer.com



[ Reply to This | # ]
Create a persistent BlueTooth to Address Book connection
Authored by: frumioj on Jul 02, '03 06:54:13PM

I would just note that althought the suggested solution may work for some, I had a couple of problems:

1) I had to stop mDNSResponder (which binds to port 53, and stops named from doing so)
sudo /Library/StartupItems/mDNSResponder/mDNSResponder stop

2) I had to pop some holes in my firewall for Bluetooth (ports 3000-3004) and DNS (53) to enable the phone to talk to my powerbook at all.

So now, using this script I can get my phone talking IP to my Powerbook. But, I still can't get it to look up DNS for IP addresses. And I can't figure out how to see the ppp line that mRouter uses for iSync...

I can get DNS from the machine itself, but not from the phone...



[ Reply to This | # ]