Raspberry Pi 3 connecting and setting static IP addresses on multiple networks

So you got Wifi at home and a pocket mobile wifi dongle for remote access when you are traveling. You want Raspbery Pi 3 to know which network it is currently connecting to and assign a static IP accordingly. Here is how. Edit /etc/wpa_supplicant/wpa_supplicant.conf, then ctrl+x y: $sudo nano /etc/wpa_supplicant/wpa_supplicant.conf…