Question: If I have a computer connected to a router which has a wireless access point and the computer is connected by a cable, does Firefox use the ip address of the connection or the MAC address of the access point to send to the GeoLocation service when using HTML5 GeoLocation API?

It seems a MAC address would be more accurate for location determination.

I used FireFox to go to <http://html5demos.com/geo> and a network sniffer to find out what FF is sending for network identification but I couldn't find the relevant data. Any ideas which request has it? In the URL or form data?

**Addition:**

Can the answer include the actual request, as captured by network sniffer, sent by Firefox? I know Firefox sends either an ip address or MAC address but I am not seeing any kind of identification being sent out.

Answer: 
In this HTML5 example, your geolocation is never sent to the server, all is done client-side.

geolocation : this javascript gets your exact position, whit latitude/longitude

```
navigator.geolocation.getCurrentPosition(function() {console.log(arguments)}, function() {console.log(arguments)});

```

Firefox [use google location services to locate you](http://mxr.mozilla.org/mozilla1.9.1/source/dom/src/geolocation/NetworkGeolocationProvider.js) based on your public IP (router).

Then google maps then display a marker at your position

```
var map = new google.maps.Map(document.getElementById("mapcanvas"), myOptions);

var marker = new google.maps.Marker({
    position: latlng, 
    map: map, 
    title:"You are here!"
});

```
See [my answer to your other question](https://stackoverflow.com/questions/5063200/firefoxs-geo-wifi-urls-https-www-google-com-loc-json-not-used/5066688#5066688), it sends a JSON object like this:

```
{"version":"1.1.0","request_address":true}

```

It doesn't send your MAC address. The [full Geolocation API Network Protocol is documented here](http://code.google.com/apis/gears/geolocation_network_protocol.html).