In my past experience, VM with only private ip (no public ip) cannot surf internet.
but today i create VM with only private ip.
i run this command for check "Invoke-WebRequest -Uri https://google.com -UseBasicParsing"
the result status code is 200 OK
i check this symptom more. i create vm with public ip, remote to private-vm throught public-vm and try to surf internet. it can surf.
Why is that?
private vm setting: private ip-->10.0.2.5
public vm setting: private ip-->10.0.2.4 public ip-->52.163.227.73
ip on public vm and private vm