Here are a bunch of useful commands that you can run to help your troubleshoot network programs like connectivity to your default gateway and the internet.
This command shows a lot of useful information such as your IP address, subnet, gateway and your DNS and DHCP servers.
This command shows you the DNS cache on your local machine, giving you IP address to name mapping.
This command will flush the DNS cache on the local machine.
This command will show all the open tcp/udp ports on your machine
This command will show you your arp cache which gives you IP to MAC address mappings.
tracert -d 184.108.40.206
This command send a traceroute to 220.127.116.11(google) and show you all the hops the packet took on its way there. The -d option prevents name resolution which speeds up the command.
pathping -n 18.104.22.168
This command is similar to tracert and will show you all the hops the packet took on its way to 22.214.171.124(google). The -n option prevents name resolution.
This command will give you the hostname of 126.96.36.199(Google) or if used with a hostname will give you the IP address.
This command will give you the NetBIOS name associated with the IP address.