Moin,
Am Mon, 23 Aug 2004 13:16:46 +0200 schrieb Pete:
> how do you get a bt device to send BD_ADDR via the web??? Like, you
> can get the IP addy from a computer by sending the REMOTE_ADDR
> environment variable through a form.=20
> i'd totally love the person who can answer this question and i'll buy
> them a steak dinner and take them to the movies :-))
I can: You can't.
The bluetooth device address is a hardware address just like the
ethernet hardware address and thus not transmitted through IP routers. I
can only think of three ways of getting it (without cooperation on the
sending device, that is):=20
1. You are the gateway that the bluetooth device is using to get IP
connectivity, or
2. the bluetooth device is using BNEP to get network access and you
are on the same LAN (no router oder masquerading gateway in between),
or =20
3. the connection is through BNEP and IPv6 and the bluetooth device is
using stateless address autoconfiguration without privacy extensions as
defined in RFC 3041.
Case 1 should be pretty straightforward. In case 2 you would simply look
up the IP address in the ARP table (arp(8) under Linux). In case 3 the
hardware address (sort of) would be part of the IPv6 address.
So the only practicable way would need some cooperation on the bluetooth
device such as a text field labeled "Please fill in your bluetooth
device address here" that the user needs to fill out, or some sort of
program that you install on the device.
--=20
Henryk Pl=F6tz
Gr=FC=DFe von der Ostsee
~~~~~~~ Un-CDs, nein danke!
http://www.heise.de/ct/cd-register/ ~~~~~~~
~ Help Microsoft fight software piracy: Give Linux to a friend today! ~