Skip to content
No results
  • Documentation
  • Home
  • Privacy Policy
Ask Your PC
  • Documentation
  • Home
  • Privacy Policy
Ask Your PC

Windows

12
  • Troubleshooting Windows — Fix Crashes, Freezes, and Slow Performance
  • Windows Settings Explained — Understand Every Section Clearly
  • Organizing and Backing Up Files — Keep Your Data Safe and Synced
  • Managing Files and Folders — Learn File Explorer Like a Pro
  • Customizing Windows — Appearance, Shortcuts, and Personal Settings
  • Getting Started with Windows: Your First Steps
  • Windows Freezing or Crashing — Fix System Hangs, Blue Screens, and Driver Conflicts
  • Windows Fan Noise — Stop Overheating and High CPU Cooling Issues
  • Windows Disk Usage 100% — Fix Slow Performance and Drive Bottlenecks
  • Windows Memory Leaks — Fix RAM Usage that Grows Over Time
  • Windows CPU Spikes — Fix High Usage from Background Services and System Interrupts
  • Windows Running Slow — Speed Up Boot, Apps, and Background Processes

macOS

9
  • Troubleshooting macOS — Fix Crashes, Freezes, and Performance Issues
  • Mac Settings Explained — Customize, Update, and Secure Your macOS System
  • Managing Files and Backups on macOS — Finder, iCloud, and Time Machine
  • Getting Started with Mac: A Beginner’s Guide
  • Mac Fan Noise — Reduce Heat, Optimize Background Processes, and Restore Quiet Operation
  • Mac Disk Full — Free Up Space and Optimize Storage Without Losing Files
  • Mac Memory Pressure — Free Up RAM and Stop App Freezing
  • Mac CPU Spikes — Fix Kernel Tasks, Background Indexing, and Fan Noise
  • Mac Running Slow — Fix Spotlight, Memory, and Login Items

Android

10
  • Can’t Receive Calls or Texts — Fix Signal and SIM Problems
  • Bluetooth Not Working — Fix Pairing, Audio, and Connection Drops
  • Screen Unresponsive or Frozen — Restart and Diagnose Touch Issues
  • Battery Draining Fast — Find Power-Hungry Apps and Optimize
  • Phone Overheating — Stop Background Drain and Heat Build-Up
  • Storage Full — Free Up Space Without Losing Photos or Data
  • Wi-Fi Connected but No Internet — Fix Network and DNS on Android
  • Phone Stuck on Boot Screen — Fix Boot Loop and Recovery Mode
  • App Keeps Crashing — Fix Cache, Permissions, and Updates
  • Android Phone Won’t Charge — Fix Cable, Port, or Software Issues

iPhone / iPad

14
  • iPhone Video Recording Issues — Fix Freezing, Lag, and Audio Sync Problems
  • iPhone Camera Flash Not Working — Fix Lighting, Settings, and Hardware
  • iPhone Photos Blurry or Out of Focus — Fix Stabilization and Lens Issues
  • iPhone Camera Not Working — Fix Black Screen, Flash, and Focus Problems
  • Can’t Receive Calls or Messages — Fix Signal, Carrier, and SIM Problems
  • Bluetooth Not Working on iPhone — Fix Pairing and Audio Drops
  • iPhone Overheating — Stop Background Drain and Heat Build-Up
  • iPhone Won’t Update — Fix iOS Download and Verification Errors
  • No Sound on iPhone — Fix Speaker, Headphone, and iOS Audio Settings
  • iPhone Storage Full — Free Up Space Without Losing Photos
  • Wi-Fi Connected but No Internet on iPhone — Fix DNS, Router, and iOS Network Bugs
  • iPhone Battery Draining Fast — Find Apps Killing Your Battery
  • iPhone Screen Frozen or Unresponsive — Force Restart and Recovery Fixes
  • iPhone Won’t Charge — Fix Cable, Port, and Power Issues

Hardware Fixes

20
  • Bluetooth Not Working — Restore Connections for Mice, Keyboards, and Headphones
  • Network Port (Ethernet) Not Working — Fix LAN Jack & Driver Issues
  • Laptop Won’t Sleep or Keeps Waking Up — Fix Power, Wake & Background Tasks
  • USB Ports Not Working — Diagnose Power, Driver, and Hardware Failures
  • Overheating After Windows or macOS Update — Diagnosing Background CPU Load
  • Laptop Touchpad Not Working — Fix Cursor, Tap, and Scroll Issues
  • Laptop Camera Not Detected — How to Restore Your Webcam on Windows or macOS
  • Laptop Not Detecting Wi-Fi — How to Restore Wireless Connectivity
  • Laptop Audio Not Working — Fix Speakers, Headphones, and Sound Drivers
  • Keyboard / Mouse Intermittently Disconnecting — Fix Wireless and Wired Failures
  • External Hard Drive Detected but Not Showing in Windows or macOS
  • Laptop Shuts Down Randomly — How to Find and Fix the Root Cause
  • Laptop Fan Running Constantly or Making Noise — How to Diagnose and Quiet It
  • Keyboard Not Working or Keys Typing Incorrectly — How to Fix Input Issues
  • Laptop Screen Flickering or Flashing — How to Identify and Fix the Cause
  • Laptop Battery Not Charging — How to Diagnose Power and Charging Issues
  • External Hard Drive Detected but Not Showing in Windows or macOS
  • Computer Overheats When USB Devices Are Connected — What’s Causing It?
  • Laptop Won’t Turn On — 8 Diagnostic Steps to Get Power Back
  • USB Device Not Recognized — How to Fix Port and Driver Issues

Device-Specific

1
  • Laptop Touchpad Not Working — Fix Cursor, Tap, and Scroll Issues

Diagnostics & Testing

1
  • Laptop Touchpad Not Working — Fix Cursor, Tap, and Scroll Issues

Network & Internet

1
  • Can’t Connect to the Internet — Fix DNS and Network Configuration Errors

Printers & Peripherals

1
  • Printer Not Responding — Fix Spooler or Driver Service Failures

Software Fixes

10
  • Too Many Background Processes — Clean Startup and Optimize Boot
  • Printer Not Responding — Fix Spooler or Driver Service Failures
  • System Restore or Time Machine Not Working — Recover or Rebuild Snapshots
  • Programs Won’t Install — Fix Corrupt Installer or Security Restrictions
  • Blue Screen (BSOD) / Kernel Panic — Interpret and Fix System Crashes
  • File Explorer / Finder Not Opening — Restart or Repair System Shell
  • Can’t Connect to the Internet — Fix DNS and Network Configuration Errors
  • Application Not Responding — Diagnose Freezes and Crashes
  • Computer Running Slow — Fix Background Apps and High CPU Usage
  • Windows Update Stuck — Fix Download or Install Loops
View Categories
  • Home
  • Docs
  • Network & Internet
  • Can’t Connect to the Internet — Fix DNS and Network Configuration Errors

Can’t Connect to the Internet — Fix DNS and Network Configuration Errors

2 min read

Overview #

If your computer says “Connected, no internet” or pages won’t load even though Wi-Fi or Ethernet appears active, the problem is often software-level network configuration, not your router.
This guide helps you systematically diagnose DNS failures, misassigned IP addresses, and network stack corruption on both Windows and macOS — using built-in tools only.

What you’ll learn

  • How to verify network connectivity and adapter status
  • How to fix DNS and IP assignment issues
  • How to reset the network stack and renew connections
  • How to confirm your system can reach outside servers

Estimated time: 15–30 minutes
Skill level: Intermediate


Terms and Definitions #

TermMeaning
DNS (Domain Name System)Translates website names (like google.com) into IP addresses
IP ConfigurationThe local address, gateway, and subnet used by your device
DHCPProtocol that assigns IPs automatically on your network
Network StackSoftware layers that handle all networking (TCP/IP, DNS, Winsock)
Ping TestA diagnostic check to verify that data packets reach a destination

Steps #

Step 1 — Verify Network Connection and Adapter Status #

Windows PowerShell

Get-NetAdapter | Select Name, Status, LinkSpeed

If the adapter shows Status = Disconnected or Disabled, re-enable it:

Enable-NetAdapter -Name "Wi-Fi" -Confirm:$false

Then check your IP address:

ipconfig

If you see an address like 169.254.x.x, it means DHCP failed — your computer isn’t receiving an IP.

macOS Terminal

ifconfig en0

(Replace en0 with en1 if using Wi-Fi.)
If no valid IP appears, renew DHCP:

sudo ipconfig set en0 DHCP

Step 2 — Run a Basic Connectivity Test #

Windows

ping 8.8.8.8

If you get replies, your physical connection is working.
If that works but ping google.com fails, your issue is DNS-related.

macOS

ping -c 4 8.8.8.8
ping -c 4 google.com

If IP works but names don’t, DNS resolution is the culprit.


Step 3 — Clear and Reset DNS Cache #

Windows

ipconfig /flushdns

Then restart the DNS client service:

net stop dnscache
net start dnscache

macOS

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

This clears outdated DNS lookups.


Step 4 — Reset IP Configuration and Winsock (Windows Only) #

Sometimes your IP or TCP stack gets corrupted by VPNs or power loss.

netsh int ip reset
netsh winsock reset

Reboot afterward.

To release and renew your IP:

ipconfig /release
ipconfig /renew

Step 5 — Assign a Public DNS Manually #

If DNS lookups still fail, set your system to use Google or Cloudflare’s resolvers.

Windows PowerShell

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8","8.8.4.4")

macOS

sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 1.1.1.1

To restore automatic DNS later:

sudo networksetup -setdnsservers Wi-Fi empty

Step 6 — Reset Network Stack or Location Profile #

Windows
To clear all stored network configurations:

netsh advfirewall reset
netsh interface ip delete arpcache

Then restart the Network Location Awareness service:

Restart-Service nlasvc

macOS
Reset the network location profile:

  1. Open System Settings → Network.
  2. Click the “…” → Duplicate Location, switch to the new one, and apply.
  3. Or use Terminal: sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist sudo rm /Library/Preferences/SystemConfiguration/preferences.plist sudo reboot

Step 7 — Check Router or Firewall Conflicts #

  • Restart your router and modem.
  • Temporarily disable any third-party firewall or VPN software.
  • If you use a corporate VPN, disconnect and test local browsing — VPNs often override DNS.

PowerShell firewall check

netsh advfirewall show allprofiles

Step 8 — Test External Connectivity Again #

Windows

Test-NetConnection google.com

If PingSucceeded = True and TcpTestSucceeded = True, internet access is restored.

macOS

curl -I https://www.apple.com

If you see an HTTP 200 or 301 response, connectivity is good.


Verification #

CheckCommandExpected Result
Adapter statusGet-NetAdapter / ifconfigConnected and enabled
IP addressipconfig / ifconfigValid local IP (not 169.254.x.x)
DNSping google.comResolves domain correctly
External connectionTest-NetConnection / curlSuccessful HTTP or ICMP response

Conclusion #

When your system says “Connected but no internet,” the culprit is almost always DNS failure, cached IP conflicts, or corrupted network stack settings.
By flushing DNS, resetting IP, and verifying adapter configuration, you can usually restore full connectivity within minutes.
If issues persist, test your router or modem with another device — if that fails too, contact your ISP to verify line-level service.

Updated on October 10, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest

Powered by BetterDocs

Leave a ReplyCancel Reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Overview
  • Terms and Definitions
  • Steps
    • Step 1 — Verify Network Connection and Adapter Status
    • Step 2 — Run a Basic Connectivity Test
    • Step 3 — Clear and Reset DNS Cache
    • Step 4 — Reset IP Configuration and Winsock (Windows Only)
    • Step 5 — Assign a Public DNS Manually
    • Step 6 — Reset Network Stack or Location Profile
    • Step 7 — Check Router or Firewall Conflicts
    • Step 8 — Test External Connectivity Again
  • Verification
  • Conclusion
Copyright © 2025 - WordPress Theme by CreativeThemes