Saturday, January 10, 2015

Windows 7 shows red “X” on network icon

Windows 7 shows red “X” on network icon


This solution is for the red X when actually the network is working or connected perfectly. Just to remove the red X, continue reading below.

This often happens when you create incoming connections setup in the windows and while the red X is shown there the network is still connected.

The below solution helped me and I am sharing it here. This removed the red X from the network icon for me.

The procedure below will rewrite your hosts file. and flush the dns stuff.

Step 1:

Open Notepad

Step 2:

copy and paste the below

@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
shutdown -r -t 1
del %0

Step 3:
Save as flush.bat to your desktop.

Step 4:
Right click on the flush.bat file to run it as Administrator

The computer will now restart itself and will remove the red X from the network icon.


The file you create above will automatically be deleted due to the line "del %0"