Chrome Net Internals: How to Use the Hidden Tool
In this article
Chrome net internals is a hidden diagnostic page built into Google Chrome that lets you view network activity, clear cached network data, and test network connections. To open it, type chrome://net-internals into the address bar and press Enter. This tool is primarily aimed at developers and advanced users, but anyone can use it to troubleshoot slow loading, connection errors, or to force Chrome to re-resolve DNS entries.
What Is Chrome Net Internals?
Chrome net internals is a built-in utility that exposes the browser's internal networking stack. It is not a separate program; it is a set of web pages served from the chrome:// scheme. The tool provides real-time data about how Chrome handles network requests, including DNS lookups, TCP connections, SSL/TLS handshakes, HTTP/2 and QUIC sessions, and proxy usage. Unlike the standard Developer Tools (F12), which focus on web page performance, net internals gives you a lower-level view of the actual network layer.
The interface is divided into several tabs, each dedicated to a specific aspect of networking. The most commonly used tabs are Events, DNS, Sockets, and Proxy. These are accessible by clicking the corresponding link at the top of the page. The tool does not require any special permissions or installation; it is always available in Chrome.
How to Open and Navigate the Tool
Opening the tool is straightforward: type chrome://net-internals in the address bar and press Enter. You will see a simple page with a list of tabs. Here is what each tab does:
- Events: Shows a live log of all network events, including URL requests, DNS resolutions, and connection attempts. You can click on an event to see detailed information about it.
- DNS: Displays the browser's DNS cache and allows you to clear it. This is useful when a website has changed its IP address but Chrome still uses the old one.
- Sockets: Lists all active network sockets, including TCP and QUIC connections. You can close individual sockets or all of them to reset connections.
- Proxy: Shows the current proxy settings and allows you to test a proxy connection.
- Cache: (In some Chrome versions) shows the HTTP cache and lets you clear it.
- Alt-Svc: Displays alternative services (like QUIC) that Chrome has learned about.
- HTTP/2: Shows information about HTTP/2 sessions and server push.
- Modules: Lists the loaded network modules.
- Bandwidth: Shows estimated bandwidth usage for the current session.
- Prerender: Shows pages that Chrome has pre-rendered in the background.
To get the most out of the tool, start with the Events tab. You can filter events by typing a URL or a specific type (e.g., DNS or TCP) in the filter box. Clicking an event expands it to show a timeline of sub-events, such as when the DNS lookup started, when the socket was connected, and when the response was received.
Common Uses: DNS Flush and Connection Reset
The most practical use of net internals for everyday users is clearing the DNS cache. When a website changes its server IP, your browser might still use the old cached address, causing connection errors. To fix this, go to the DNS tab and click the Clear host cache button. This forces Chrome to re-resolve all hostnames on the next request.
Another useful feature is closing idle sockets. If you are experiencing connection issues that persist despite a normal refresh, go to the Sockets tab and click Close idle sockets or Flush socket pools. This closes all existing connections, forcing Chrome to establish new ones. This can resolve issues with stuck connections or stale TCP sessions.
For developers, the Events tab is invaluable for debugging. For example, if a website fails to load, you can see exactly where the request failed: at the DNS resolution, at the TCP connection, or at the TLS handshake. The event log includes timestamps and error codes, which can be shared with server administrators or used to report bugs.
Capturing and Exporting Network Logs
Net internals allows you to save a log of all network events for later analysis. This is especially useful when reporting issues to Chrome developers or your network administrator. To capture a log:
- Open
chrome://net-internalsand go to the Events tab. - Reproduce the problem (e.g., load the failing page).
- Click the Save button at the top of the page. This downloads a JSON file containing all recorded events.
The exported file can be opened in the Import feature on the same page, or viewed in a text editor. When sharing the log, be aware that it may contain sensitive information such as URLs, IP addresses, and cookies. Remove any personal data before sharing publicly.
Understanding the Events Tab
The Events tab is the heart of net internals. Each event has a source type (e.g., URL_REQUEST, HOST_RESOLVER_IMPL, TRANSPORT_CONNECT_JOB) and a source ID. The log shows the flow of a request from start to finish. For example, when you type a URL, you will see an event for the URL request, followed by a DNS resolution event, then a socket connect event, then a TLS handshake event, and finally the response.
Each event has a Start Time and End Time (if completed). You can click on an event to see more details, such as the resolved IP address, the port used, and any error codes. Common error codes include ERR_NAME_NOT_RESOLVED (DNS failure), ERR_CONNECTION_TIMED_OUT (TCP timeout), and ERR_SSL_PROTOCOL_ERROR (TLS failure). Understanding these codes helps you pinpoint the cause of a problem.
Privacy and Safety Considerations
Using net internals is safe; it does not modify your system or install anything. However, the data shown is highly technical and can be overwhelming. It is also important to note that the tool is not a security scanner. It does not tell you if a website is malicious; it only shows network activity. If you are concerned about privacy, be aware that the tool can reveal your browsing history and IP addresses to anyone who has access to your screen. Do not leave the page open on a shared computer.
There is a common misconception that net internals can be used to bypass network restrictions or parental controls. This is not true. The tool only displays information and allows you to clear caches and close connections; it does not bypass firewalls, proxies, or content filters. Attempting to use it for such purposes will not work.
Alternatives to Net Internals
If you need a more user-friendly way to diagnose network issues, consider these alternatives:
- Chrome Developer Tools (F12): The Network tab shows a simplified view of requests, including timing and status codes. It is better for web development than for low-level network debugging.
- Browser extensions: Extensions like Web Developer or PageSpeed Insights provide some network diagnostics, but they are limited to the page's requests.
- Command-line tools: Tools like
ping,tracert, andnslookup(Windows) ordig(macOS/Linux) can test connectivity and DNS from the OS level. - Network analyzers: Wireshark is a powerful packet analyzer, but it requires advanced knowledge and is overkill for most browser issues.
For most users, clearing the DNS cache or flushing sockets is the only action you will ever need. For deeper troubleshooting, the Events log is the most valuable feature.
Frequently Asked Questions
How do I clear the DNS cache in Chrome?
Open chrome://net-internals, go to the DNS tab, and click the Clear host cache button. This removes all cached DNS entries. You can also close all sockets from the Sockets tab to force new connections.
Does net internals work on mobile Chrome?
No, the chrome://net-internals page is only available on desktop versions of Chrome (Windows, macOS, Linux, and ChromeOS). On Android or iOS, you can use the chrome://net-export page to capture a log, but you cannot view live events.
Can net internals fix my internet connection?
It can help with issues caused by Chrome's cached data or stale connections. If the problem is with your router, ISP, or DNS server, net internals will not fix it, but it can help you identify where the failure occurs.
Is it safe to clear all sockets?
Yes, clearing sockets is safe. It simply closes all active network connections. Chrome will automatically open new connections as needed. You might notice a brief delay while pages reload, but no data is lost.
What does the 'Import' button do on net internals?
The Import button allows you to load a previously saved log file (JSON format) to view its events. This is useful for analyzing logs shared by others or for reviewing a problem after the fact.
Why do I see 'ERR_SSL_PROTOCOL_ERROR' in the events?
This error indicates a problem with the TLS/SSL handshake. It can be caused by an outdated server certificate, a misconfigured server, or interference from antivirus software. Check the event details for the exact error code and consult the website administrator.