MacBook Pro Connects to Wi-Fi but not the Internet I am on a MacBook Pro 2012 running macOS 10.11. 

Recently, I have been having a problem with my Wi-Fi. Specifically, whenever I disconnect from one Wi-Fi network and attempt to connect to another in a different location, I get no internet. The signal says I am fully connected to the new network, but I cannot access the internet.

Restarting the computer solves the problem, but it is a pain to restart the computer every time I want to connect to a different network as I travel with my computer a lot.

I recently installed VPN software and suspect this may be the root of the problem because I never had this problem before the VPN.

Can anyone give me some ideas to fix this?
Seamus is right, it seems an issue related to network and not your MacBook Pro, though, you could execute  network diagnostic Utility.

The Network Diagnostics utility will guide you through a series of questions and tests, based on  your ethernet or Wi-Fi connection to network configuration and DNS servers. Sometimes the utility is able to fix issues by itself , but,when it can’t, it usually provides lots of useful info regarding  the nature of the problem as well as to offer several suggestions in order to fix network issues.

regarding VPN, could you tell me if you use more IP at the same time ?