I am using some code (jupyter notebook) on one machine but at two places (at home and at work). At work internet connection is behind proxy. When I set right proxy to HTTP.get function it is working just fine. But I would like to automatically find out whenever I am at work ot at home.
Without setting proxy it is not working (is there way to automatically findou out whenever to use system proxy?).
I found a can get IP address via:
But IP addreesses are often similar and it is not possible to distinguish work and home.
Is there any tricky how to do that? Is there a way to get somehow name of the internet connection (name of the Wifi)?