chrome: disable internet connection or work offline

Google ChromeBrowserOffline

Google Chrome Problem Overview


How can I disable internet connection or work offline like Firefox in Chrome? I need to check some errors when Internet is not available.

Google Chrome Solutions


Solution 1 - Google Chrome

offline mode is added to Chrome v45.

Developer tools -> Network tab -> Choose "offline" from selectbox.

enter image description here

Solution 2 - Google Chrome

Offline switcher is a new handy Chrome Extension to do the job quickly. You can toogle to switch between offline and online mode.

Chrome offline switcher

The add-on is simple, just to set Chrome proxy to an un-existing point.

Solution 3 - Google Chrome

Under the network tab, go to the THrottling dropdown where you can select different speeds of web and even set it to be offline. This comes very handy when you are working with service workers and want to test your application in offline mode.

enter image description here

Refer to the latest answer: https://stackoverflow.com/a/32607960/2520254

Solution 4 - Google Chrome

Until Chrome has a feature to disable internet but retains localhost (or local network) connections. The only way I could suggest is to just disconnect the network from the internet manually for your testing.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIkromView Question on Stackoverflow
Solution 1 - Google ChromeIkromView Answer on Stackoverflow
Solution 2 - Google ChromeDuong NguyenView Answer on Stackoverflow
Solution 3 - Google ChromeAkshay GundewarView Answer on Stackoverflow
Solution 4 - Google ChromeHyperionXView Answer on Stackoverflow