When I game with my friends and we're using laptops, we use an ad-hoc network to reduce latency. The annoying thing about this is that we have to switch our IPv4 settings to use a specific IP, but I have to switch this back to obtaining an automatic IP every time I want to go back onto the internet. Is there a way to script this so I could click on a shortcut to use a fixed IP, and another shortcut to go back to automatic? Maybe even something that switches the network I'm connected to at the same time.