IT Consultant Everyday Notes

Just some problems/solutions storage

Windows 7: Internet Connection detection

Problem: If you use a proxy to connect to Internet you may see an annoying exclamation point on your Network connection icon in Task bar.

Basically it says you do not have Internet connection. 

The matter in fact Windows 7 tries to

1. Resolve FQDN of www.msftncsi.com. It should be resolved into 131.107.255.255

2. sends HTTP request to get a plain text file at URL: http://www.msftncsi.com/ncsi.txt

This technique is called Network Connectivity Status Indicator(NCSI) service and was introduced in Vista. It is described here.

Wireshark shows that NCSI goes directly to MS site (bypassing proxy) even though proxy is properly set in Internet Explorer.

Resolution: Kyle pointed to an NETSH command to force NCSI use proxy:

netsh winhttp set proxy <your_proxy:port>

you can verify settings using

netsh winhttp show proxy

After that on Wireshark trace you see traffic from NCSI goes to proxy and preperly replied. Indication in task bar is ok.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: