Where is my Mac connected to ?
What Application is using that connection ?
Geo-Netstat is a program you run in your terminal and it provides a geographical location for your application's internet connections.
Tested on MacOS Sierra.
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com
$ git clone --recursive https://github.com/maxmind/libmaxminddb
$ cd libmaxminddb
$ ./bootstrap
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig
Go to http://dev.maxmind.com/geoip/geoip2/geolite2/
Download these archives:
'GeoLite2 City'
'GeoLite2 Country'
'GeoLite2 ASN'
Uncompress in a folder and copy the folder to a location on your system.
The location is set in geo-netstat.h:
#define MMDB_ASN_DB "/usr/local/db/GeoLite2-ASN.mmdb"
#define MMDB_CITY_DB "/usr/local/db/GeoLite2-City.mmdb"
#define MMDB_COUNTRY_DB "/usr/local/db/GeoLite2-Country.mmdb"
$ gcc -o geo-netstat -L/usr/local/lib/ -I/usr/local/include/ geo-netstat.c -lmaxminddb
$ sudo mv geo-netstat /usr/local/bin
Geo-Netstat outputs a json datafile with latitude, longitude and magnitude which can be loaded into WebGL-Globe.