You are here

Fix Windows error "The name limit for the local computer network adapter card was exceeded"

This morning I wasn't greeted with happy faces at work. Some users could not log in, some got connection errors from Outlook and often some or all of their mapped drives were missing.

All this was happening on one of our (Citrix) terminal servers. Searching through the event logs I found warnings such as "The user 'X:' preference item in the 'Drive Mappings {F86B7E1E-0434-408F-AA1A-B616952AF5C2}' Group Policy object did not apply because it failed with error code '0x80070044 The name limit for the local computer network adapter card was exceeded.' This error was suppressed.".

Searching Google for the error code led me to Microsoft Article http://support.microsoft.com/kb/319504. Essentially the server was regularly failing to create network connections.

Running

netstat

on a command line showed me countless connections, more than I've ever seen on any system.

On closer inspection, most of them were in the TIME_WAIT state and running

netstat -ano

also revealed that most of these connections weren't even associated with a real Process ID:

Active Connections

  Proto  Local Address          Foreign Address        State           PID
...
  TCP    192.168.1.101:55389    192.168.1.30:1433      TIME_WAIT       0
  TCP    192.168.1.101:55390    192.168.1.30:1433      TIME_WAIT       0
  TCP    192.168.1.101:55391    192.168.1.30:1433      TIME_WAIT       0
  TCP    192.168.1.101:55392    192.168.1.30:1433      TIME_WAIT       0
  TCP    192.168.1.101:55393    192.168.1.30:1433      TIME_WAIT       0
...

This is very weird because TIME_WAIT connections should simply be closed after (by default) 240 seconds.

Some forums and KB articles (such as http://support.microsoft.com/kb/970406) suggest lowering this timeout with the TcpTimedWaitDelay registry parameter, but this requires a reboot and I didn't want to bother our users.

Another KB article (http://support.microsoft.com/kb/2553549) provides a solution for TIME_WAIT problems with servers running more than 497 days, but our terminal servers are rebooted weekly so this couldn't be related.

Running

netstat -ano | find /c "TIME_WAIT"

showed me that the number of TIME_WAIT connections was close to 16384. I always thought all ports above 1024 were available for outgoing connections so I expected a system would only get into trouble with a number close to 64512...

Reading http://en.wikipedia.org/wiki/Ephemeral_port clarified that IANA recommends port range 49152 to 65535, which is also used by Microsoft since Server 2008. This led me to article http://support.microsoft.com/kb/929851 which shows how to view the port range:

C:\>netsh int ipv4 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

Even better, it shows how to change the range on a running system, so I increased it to the maximum:

netsh int ipv4 set dynamicport tcp start=1025 num=64510

Best of all, after checking the connections with netstat, all TIME_WAIT connections with PID 0 had magically disappeared!

This took the pressure of the server without a reboot; happy users!

I haven't figured out yet which program was creating those countless (MS-SQL) connections and why Windows wasn't closing them (or closing them fast enough), but at least I have a quick-fix now.

I'm also unsure why a larger port range is not the default. The Microsoft article above actually states that an Exchange server uses range 1025 to 60000. Linux uses 32768 to 61000 by default. I guess it's just some here be dragons fear...

Comments

Thank you so much for this post, I was completely stuck until I found this.

I was hoping you could help me, did you rum this on the server or client computers. Im having the same issue bit its happening to my workstation not servers at least 4 clients per night when there idle. when I get I have to reboot there computers so they can hit there network shares.

You are a life saver...

perrfecto!

Only thing I could find that actually worked. Maybe you should share with M$
Thanks!

Thank you so much dude, We followed it and fixed this prolonged issue in a critical project.

Приветствую всех!
Нашел приколы с Фото на этом сайте: http://agentmdk.ru :
http://agentmdk.ru/foto-prikoly-interesnoe/2756-kak-zhivut-tadzhiki-u-se... <b> Как живут таджики у себя на родине? </b>
http://agentmdk.ru/foto-prikoly-interesnoe/9161-moda-na-manikyur-za-100-... <b> Мода на маникюр за 100 лет </b>
http://agentmdk.ru/art/8779-stadion-dinamo-montazh-cheshui-liftov-i-eska...

Приветствую всех!
Нашел приколы с Фото на этом сайте: http://agentmdk.ru :
http://agentmdk.ru/foto-prikoly-interesnoe/2756-kak-zhivut-tadzhiki-u-se... <b> Как живут таджики у себя на родине? </b>
http://agentmdk.ru/foto-prikoly-interesnoe/9161-moda-na-manikyur-za-100-... <b> Мода на маникюр за 100 лет </b>
http://agentmdk.ru/art/8779-stadion-dinamo-montazh-cheshui-liftov-i-eska...

Visitors to workshop can find many questionnaires massage specialist of any age and nationality performing Happy ending massage in the city Queens.

Girls are able not only to give pleasure in this way, but also to demonstrate their other abilities to men of the stronger sex. Girls perform erotic a massage that will produce a Strong gender a vivid impression.
Prices for body to body massage depends on qualification Women and the skills that she possesses. Before making a choice, carefully study the prices for services and customer feedback about the work of one or another masseur specialist. We are sure that the search for a real professional masseur will be crowned with success and you will be satisfied with the quality of our services. Women are skilled workers in their field and they will help you relax after a hard day.

We work in New York. - <a href=https://music-therapy.massage-nyc.com>Music Therapy</a>

Здравствуйте!
Нашел прикольные фотки на этом сайте: http://wozap.ru :
http://wozap.ru/foto-prikoly-interesnoe/6630-kladbische-sobak.html <b> Кладбище собак </b>
<a href=http://wozap.ru/foto-prikoly-interesnoe/6671-stalker-art.html> STALKER арт </a>
http://wozap.ru/foto-prikoly-interesnoe/6757-devushka-sobrala-samyy-bols...

Привет всем участникам! интересный у вас сайт!
Нашел сериальную базу кино: <b> смотреть бесплатно лучшие зарубежные комедии </b> <a href=http://kinofly.net/>http://kinofly.net/</a>
Здесь: лучшие аниме фильм бесплатно http://kinofly.net/anime/ список 2018
Тут: смотреть лучшие боевики 2017 в hd http://kinofly.net/boevik/ список 2018
Здесь: <a href=http://kinofly.net/detektiv/>кино онлайн в хорошем качестве детективы</a> русские детективы лучшие фильмы смотреть бесплатно список 2017
Тут: http://kinofly.net/news/7116-metal-gir-solid-medlenno-dvizhetsya-k-zrite... <b> «Метал Гир Солид» медленно движется к зрителю </b>
Здесь: http://kinofly.net/news/13073-keyt-uinslet-i-dzhastin-timberleyk-na-kadr...

Hi capens.net click on the picture.
<a href=http://sexfreefoto.com><img src="http://sexfreefoto.com/images/8.jpg"></a>
Free Sex Dating Without
Acquaintance Sex 50 Years Old
Sex Dating Without Registering A Woman
Dating For Sex And Communication
Fast Sex Dating
Sex Dating In Eagle
Sex Dating Great
Dating Site For Sex
Dating With Girls Without Registration For Sex
Ru Sex Dating
Free Sex Dating
Sex Dating Without Photos
Sex Dating For 40
Sex Dating Free Of Charge Without Registering With The Phone
Sex Dating

Привет всем участникам! Класный у вас сайт!
Что скажете по поводу этих новостей?:
http://enewz.ru/news/13898-vspomnit-vse-ili-letuchiy-gollandec-igil.html <b> Вспомнить все, или Летучий Голландец ИГИЛ </b>
http://enewz.ru/news/9644-amerikanskie-uchenye-izobreli-revolyucionnyy-s...
http://enewz.ru/news/1275-krovavyy-oktyabr-dubrovki-desyat-let-spustya-g...
Ещё много всего по теме нашел тут: <b> </b> <a href=http://enewz.ru/> </a>

Absolutely NEW update of captcha breaking package "XRumer 16.0 + XEvil":
captchas solving of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
and more than 8400 another size-types of captchas,
with highest precision (80..100%) and highest speed (100 img per second).
You can use XEvil 4.0 with any most popular SEO/SMM programms: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

Interested? There are a lot of demo videos about XEvil in YouTube.

FREE DEMO AVAILABLE!

Good luck!

http://XEvil.net/

Всем привет! интересный у вас сайт!
Нашел класную базу кино: <b> смешные комедии онлайн бесплатно в хорошем качестве </b> <a href=http://kinofly.net/>http://kinofly.net/</a>
Тут: аниме хорошего качества онлайн http://kinofly.net/anime/ список 2017
Тут: бесплатно боевики хорошем новый http://kinofly.net/boevik/ список 2017
Здесь: <a href=http://kinofly.net/detektiv/>смотреть лучшие детективы hd</a> русские фильмы детективы смотреть хорошем качестве список 2017
Здесь: http://kinofly.net/drama/4680-razverzlis-nebesa-heavens-fall-2006.html <b> Смотреть Разверзлись небеса / Heavens Fall (2006) онлайн бесплатно </b>
Здесь: http://kinofly.net/drama/6341-luchshe-zvonite-solu-better-call-saul-sezo...

Hello. And Bye.

Доброго времени суток дамы и господа!

Предлагаем инеженерно-техническое оборудование для отопления и производств

<a href=https://vk.com/dakartabiz>https://vk.com/dakartabiz</a>

Вам предоставляется консультация специалиста и делается предварительный расчет стоимости.

Нам будет приятно видеть у нас на сайте

<a href=https://vk.com/dakartabiz>https://vk.com/dakartabiz</a>

От всей души Вам всех благ!

завод котельного оборудования сайт
новости производства
однофазный насос grundfos

Доброго времени суток дамы и господа!

Предлагаем инеженерно-техническое оборудование для отопления и производств

<a href=https://vk.com/dakartabiz>https://vk.com/dakartabiz</a>

Вам предоставляется консультация специалиста и делается предварительный расчет стоимости.

Нам будет приятно видеть у нас на сайте

<a href=https://vk.com/dakartabiz>https://vk.com/dakartabiz</a>

От всей души Вам всех благ!

завод котельного оборудования сайт
новости производства
однофазный насос grundfos