I set up an Ubuntu VM with static IP address but it cannot connect to the internet or ping the DNS server (22.214.171.124).
How can I fix this? The network adapters are: 1: NAT 2: Host-only Adapter
Found out the solution, the router I was connected to used a different format of IP addresses (10.x.x.x), so the static IP I entered was invalid. Changing the IP address to this format solved the problem.