Error » Microsoft Error! » Microsoft Operating Systems Error » Microsoft Windows xp error » How to Disable Media Sense for TCP/IP in Windows XP

Microsoft Windows xp error all errors and bugs related to Microsoft winxp error

Post New Thread Reply
  How to Disable Media Sense for TCP/IP in Windows XP
LinkBack Thread Tools Display Modes
Old 19-Dec-2006, 09:31 PM   #1 (permalink)
Administrator
 
Anilrgowda's Avatar

Posts: 18,712
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default How to Disable Media Sense for TCP/IP in Windows XP

How to Disable Media Sense for TCP/IP in Windows Xp


In this article we will cover how to disable ‘Media Sense’ 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 "Media Sensing" 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.
Note:
Always make a backup of the Registry either manually or using System Restore before editing the Registry.
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:

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.
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.
When the network cable is disconnected, the operating system will show you a message as seen in the following illustration:

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.
Is this Normal Behavior?

This is normal (default) behavior in both 2000 and XP. Media Sense (added into NDIS 5.0) 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.
How do you disable Media Sense?

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.
Follow these steps to disable Media Sense and the adapter from detecting link state:
  1. Launch the Registry editor. Start => Run => type Regedt32 => Enter
  2. Browse to the following key in the Registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\Tcpip\Parameters

  1. Add the following registry value:

Value Name: DisableDHCPMediaSense
Data Type: DWORD
Value Data Range: 0, 1 (False, True)
  1. 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.
  2. Restart your computer
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.
Is there anything else I should know?

Yes, you should be aware that not only is the Media Sensing gone, but also that handy way for your end user community to call your 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. I remember from the NT days how many calls can come into a help desk based on end users accidentally unplugging a network cable and that meant ‘the network is down!’ when it was really the fact that it was an unplugged LAN cable.
How to Disable Media Sense for TCP/IP in Windows 2000
http://support.microsoft.com/?kbid=239924
Anilrgowda is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
   


   
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 05:36 PM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

DMCA Policy

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227