Find Your IP Address and Fix the Network with ipconfig
Tools You'll Need
Terminalipconfigping
Open Terminal or Command Prompt.
ipconfig: shows your IP address (IPv4) and Default Gateway (the router).
ipconfig /all: more detail, including the physical (MAC) address and DNS servers.
ping 192.168.1.1: test the router (use your gateway address). Replies mean the PC reaches the router.
ping 8.8.8.8: test the internet.
ipconfig /flushdns: clears the DNS cache. Fixes some websites that won't open.
ipconfig /release then ipconfig /renew: gets a new IP address from the router.
IP starting with 169.254? The PC didn't get an address from the router. Restart the router, check the cable or Wi-Fi, then run /renew.