HUGE_DICK_10_INCHES's avatar

Get wifi connected devices location

Is it possible to get wifi connected devices location with laravel?

0 likes
16 replies
automica's avatar

no.

laravel sits on a server. wifi devices sit in your house.

automica's avatar

@sr57 are you expecting your php app to poll your network interface and record connected devices?

sr57's avatar

@aurelianspodarec

Maybe but how are you sure than the one you use is better?

Never put your eggs in the same basket (I had some servers in this OVH datacenter, but I lost nothing because they were backup on my home severs)

aurelianspodarec's avatar

@sr57 Well, I've lost a pendrive and I've lost all of my data.

So now I keep things in online databases where I pay.

However, when you get to GB of data or Terabytes of data, I mean, are you meant to carry a box with you anywhere where you go. Or maybe use multiple services cloud databases instead as well.

I don't know. I've already lost some data. A lot actually... very sad but uf.

I suppose buy a box and keep data there at home, and don't store stuff on pendrive and don't take it away, and have two online separate services elsewhere to have a back-up. That way the data is bacedup three times, and three times more likely to get stolen maybe xD

sr57's avatar

@dokolenko24cm

Laravel is php and php has exec or system commands that can execute all system commands.

1 like
sr57's avatar

@Dokolenko24cm

2 ways to understand your question as device refers to local (server) devices or distant (client) devices, I assume the first one since you cannot do the second.

Snapey's avatar

You have two options

  1. get the ip address and resolve to a (crude) location

  2. ask the user for permission to geolocate them (which they may not agree to)

From the server, you cannot tell if the user is connected over wifi and even if you did, it would not tell you the location,

dvienne's avatar

Usually, getting the geolocation of a user is done through Javascript (not a Laravel topic)

Here you can find a documentation regarding the JS Geolocation API https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API

This thing has indeed to be done, at any moment, on the same side as the user.

Saying you should sniff network in order to get your users geolocation is a non-sense and is not legal in many countries... it's not even pratically feasible in much cases. ;)

Please or to participate in this conversation.