{"id":489,"date":"2012-02-23T00:39:02","date_gmt":"2012-02-23T00:39:02","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=489"},"modified":"2012-02-23T00:39:02","modified_gmt":"2012-02-23T00:39:02","slug":"how-to-disable-media-sense-for-tcpip-in-windows-xp","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=489","title":{"rendered":"How to Disable Media Sense for TCP\/IP in Windows XP"},"content":{"rendered":"<p>In this article we will cover how to disable \u2018Media Sense\u2019 for TCP\/IP  based connections on a Windows XP professional system. We will also  cover why this may be beneficial to you in practical use.<\/p>\n<h2>What is Media Sensing?<\/h2>\n<p>Windows contains a &#8220;Media Sensing&#8221;  feature. Although, many time Windows based operating systems do  something to make your life easier, at times it also adds complication.  Many times the only way to adjust such automatic features is to edit the  Registry which is what we will be doing in this article.<\/p>\n<p><strong>Note:<\/strong><br \/>\nAlways make a backup of the Registry either manually or using System Restore before editing the Registry.<\/p>\n<p>Windows 2000 (and continued with XP) introduced a media-sense feature  into the OS that allowed for a NIC (Network Interface Card) to be able  to detect if a network cable connected to it. You would see this pretty  clearly as the OS came to life as you either plugged a cable into the  port and\/or removed it with the following Windows XP based illustration:<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0031098180989418.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>If the cable is disconnected, the Operating System will disable the  protocols on the adapter. A loopback of 127.0.0.1 (in your HOSTS file)  will still work. Also, note that TCP\/IP is affected; NetBEUI and IPX do  not recognize Media Sense.<\/p>\n<p>This may be inconvenient for you if you are using applications that  require IP connectivity to remain constant; you are using portables, or  any other reason. You should be able to disable this feature if it is  causing you issues.<\/p>\n<p>When the network cable is disconnected, the operating system will show you a message as seen in the following illustration:<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0051098180989418.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>This message states that you have unplugged a cable, but what you may  now know is that the OS disables the entire network protocol stack at  the same time which is something you may not want to happen. The  disabling of this stack will mean that you will not even be able to  reach network addresses on your own system.<\/p>\n<h2>Is this Normal Behavior?<\/h2>\n<p>This is normal (default) behavior in both 2000 and XP. Media Sense was built into the system to do this exact  function. It was initially developed from NT 4.0 where if you unplugged  from one network segment and moved to another (example: you are plugged  into a VLAN on 10.1.1.0 and move to another VLAN segment at 10.1.2.0)  you would most likely have to refresh your settings with IPCONFIG  \/release \/renew to get the new IP range from your DHCP server. With  Media Sense, its nearly automatic, hence better movement ability for  roaming users. This also conflicted with when you took a PC home and  trying to dial in or use a network connection from home, you may still  have old settings set into the stack. Media sensing is a good thing,  this article just states why you may want to disable it.<\/p>\n<h2>How do you disable Media Sense?<\/h2>\n<p>Again, ensure that you have  run a system restore or backed up our system before attempting to modify  the system Registry. Since running a system restore is pretty simple  and only requires you to follow a Wizard and have some extra disk space  on your PC, it is highly recommended that you do so.<\/p>\n<p>Follow these steps to disable Media Sense and the adapter from detecting link state:<\/p>\n<ol type=\"1\">\n<li>Launch the Registry editor. <strong>Start =&gt; Run =&gt; type Regedt32 =&gt; Enter<\/strong><\/li>\n<li>Browse to the following key in the Registry:<\/li>\n<\/ol>\n<p>HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Tcpip\\Parameters<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0071098180989418.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<ol type=\"1\">\n<li>Add the following registry value:<\/li>\n<\/ol>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0091098180989434.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>Value Name: DisableDHCPMediaSense<br \/>\nData Type: DWORD<br \/>\nValue Data Range: 0, 1 (False, True)<\/p>\n<ol type=\"1\">\n<li>This parameter controls DHCP Media Sense behavior. If you set this  value data to 1, DHCP, and even non-DHCP, clients ignore Media Sense  events from the interface. Set this parameter to 1 to cause it to  disable.<\/li>\n<li>Restart your computer<\/li>\n<\/ol>\n<p>Once the PC comes back up, the setting should have taken place and  you should not have to deal with Media Sensing anymore. If you still see  it, you may have set the Registry String incorrectly so double check  it.<\/p>\n<h2>Is there anything else I should know?<\/h2>\n<p>Yes, you should be aware that not only is the Media Sensing gone, but  also that handy way for your end users to call the help desk  and tell them that the cable is unplugged. They may even see this  message and realize they kicked the cable out themselves. For those of  you in a work based environment, you may not want to disable this  feature for that simple reason alone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will cover how to disable \u2018Media Sense\u2019 for TCP\/IP based connections on a Windows XP professional system. We will also cover why this may be beneficial to you in practical use. What is Media Sensing? Windows contains a &#8220;Media Sensing&#8221; feature. Although, many time Windows based operating systems do something to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-winxp"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}