5 quick fixes for 'Net connection hang-ups

Dead Net connection? Use the power of the Windows command prompt to get back online fast.

When you start up Firefox or Internet Explorer, the last thing you want to see is a plain, white screen declaring 'The page cannot be displayed'. But if you ever do encounter one, we have the fix. Whether you work in Windows XP or Vista, tracking down connection failures can be a simple, methodical process.

Both XP and Vista are supposed to be advanced, graphical operating systems, but when your connection goes down, you'll find the solution in the command prompt - specifically, the Ipconfig command. Short for "Internet Protocol configuration," Ipconfig is key to establishing and reestablishing your Internet connectivity. Invariably, this command, with its array of appended parameters, is what your ISP's tech support rep will tell you to try when you're having difficulty getting online.

Here are five ways that you can raise your IP IQ and troubleshoot your connection yourself.

Web connection woes? Refresh your IP address

If you use DSL or cable broadband, you probably have a dynamic IP (Internet Protocol) address, which means that your PC's Internet address changes each time you log on. Your IP address should be assigned by DHCP (Dynamic Host Control Protocol).

From time to time, however, this process doesn't behave as dynamically as its name implies: Sometimes it doesn't assign a new address at boot-up, and you're stuck with the previous address. Since a fresh IP address is necessary to reach the Internet, when you open your browser, all you see is an error screen stating that the PC cannot establish a connection to the Internet.

Whether your system connects directly through a modem or via a router, the first step in getting an IP address assigned is to right-click the network icon in the system tray. From the resulting menu, select Repair. Windows will automatically flush the old addresses and request new ones from your router or Internet service provider, depending on how your PC is connected.

Most of the time, this operation works like a charm. But when it doesn't, you'll have to troubleshoot the situation manually, and this is where knowing the ins and outs of Ipconfig can help you get your connection up and running.

Click Start, Run and type cmd. In Vista you can save a step simply by typing cmd in the Start Search box.

At the command prompt, type ipconfig to see your currently known IP address, the subnet mask, and the default gateway for all adapters. Other adapters might include Wi-Fi and Bluetooth cards, although they may be listed as disconnected.

Ipconfig example

By itself, Ipconfig does nothing more than display information. To make it actually do something -- like refreshing your IP address -- you must add parameters preceded by a space and a forward slash. The two parameters that do the most effective job of repairing your Internet connection are '/release' and '/renew'.

Typing ipconfig /release instructs the DHCP server to erase the existing IP address for all adapters, be they ethernet or wireless. The process should take a few seconds, confirmed with a display in the DOS box showing all zeros for the IP address and subnet mask.

Now type ipconfig /renew. If the command is successful, a new IP address, a subnet mask, and the default gateway will appear along with the DNS suffix (basically your ISP's address, such as comcast.net).

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Michael S. Lasky

PC World
Show Comments

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?