Welcome to WiFi-Forum

Go Back   WiFi-Forum - Wi-Fi Discussion Forum > Bluetooth Discussion Forums > alt.cellular.bluetooth
Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2004, 05:16 AM
Pete
 
Posts: n/a
Default sending BD_ADDR via a web form

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. But it's not so easy with BD_ADDR
is it??

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 :-))




Reply With Quote
  #2  
Old 08-23-2004, 09:13 PM
gopi
 
Posts: n/a
Default Re: sending BD_ADDR via a web form

Pete <basic_haxor@luserusers.com> wrote in message news:<sbkji09n58iau1nt36fc8eiu7l7cj593lo@4ax.com>. ..
> 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. But it's not so easy with BD_ADDR
> is it??


I think you're mistaken about the REMOTE_ADDR variable. If you're
thinking of PHP, for example, REMOTE_ADDR comes from PHP, _not_ an
environment variable from the remote computer. For a web server to
work, it _must_ know the IP address of the remote system or else it
couldn't respond to the request!

What you want to do would be a major security / privacy loophole, and
would be considered a bug to fix. IMHO. The only way to do it would be
to have something like a custom plug-in or ActiveX control that the
person viewing the site would install. They'd need to trust you and
permit you to run this code.
Reply With Quote
  #3  
Old 08-25-2004, 05:49 AM
Henryk Plötz
 
Posts: n/a
Default Re: sending BD_ADDR via a web form

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! ~
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail on WIFI networks Sanjay Punjab alt.internet.wireless 13 06-12-2004 01:13 PM
Sending a Signal Through Multiple Buildings toucansma WiFi Forum 12 04-28-2004 05:46 PM




All times are GMT -7. The time now is 07:51 AM.

vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. All Contents Copyright © Wifi-Forum.com