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!"
});

```
Firefox actually gathers MAC addresses of surrounding WIFI access points and send them to Google Location Services for them to achieve better location accuracy than GeoIP alone.

Google has been using StreetView cars to gather WIFI AP - location information for a long time.