Page 4 of 4
Re: Any thoughts on security
Posted: Wed Jun 26, 2024 10:32 pm
by edk
To read the location of the device, it must have a geolocation receiver, such as GPS. Such a receiver can be communicated with via a physical RS232 port or a virtual one, such as Bluetooth or USB. As I'm guessing, your programs run on PCs, so each computer would have to be equipped with a GPS receiver, which is unlikely to be possible (unless you provide such a GPS receiver to the client along with your program). An alternative may be geolocation by public IP address, but it is not very accurate and basically indicates the area of the local province (the area may reach a radius of up to hundreds of km). Besides, if the client uses a VPN, he can hide his real IP address and thus hide his approximate location.
Re: Any thoughts on security
Posted: Thu Jun 27, 2024 4:45 am
by AUGE_OHR
Hi Franco,
try : "curl -4 ifconfig.co/json" to get Entry Point of Internet Connection
and you will get "city", "latitude" an "longitude" in JSON Format
but it depend on Provider, so if Customer change Provider also Entry Point of Internet Connection may change
Re: Any thoughts on security
Posted: Thu Jun 27, 2024 5:43 am
by edk
AUGE_OHR wrote: ↑Thu Jun 27, 2024 4:45 am
Hi Franco,
try : "curl -4 ifconfig.co/json" to get Entry Point of Internet Connection
and you will get "city", "latitude" an "longitude" in JSON Format
but it depend on Provider, so if Customer change Provider also Entry Point of Internet Connection may change
This is the geolocation by IP. If you are in a provincial city then the location will match, if you are in a small town far away from the provincial city then it will show the location not yours but just the provincial city. This is how it is in Poland.
Re: Any thoughts on security
Posted: Thu Jun 27, 2024 6:40 pm
by franco
I am using postal code which is good for North America. This is where I provide my program to. I just wanted to add one more step of security.
In business environment this is pretty good but not 100 percent