1. Check if the default gateway is configured and if you can ping it.
2. check if the IP address is in the same subnet of the default gateway.
3. if work in large company environment, check the proxy server configuration. and if you can ping the proxy server.
4. check if the firewall blocked the desired traffic.