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.

Доброго времени! Хочу Вам предложить свою услугу в помощи продвижения вашего ресурса в Яндексе и Google, недорого, всего лишь за 9700 рублей.

От Вас нужна лишь ссылка на Ваш сайт и ключевые слова в txt файле, по которым Вы желаете продвинуться в поиске (пример вышлю по почте, если заинтересуетесь). Я размещаю вечные ссылки на форумах и сайтах, которые ведут на Ваш интернет-сайт. Мною будет написана статья (размноженная и "заточенная" под Ваш сайт), а в ней будут анкорные или безанкорные ссылки передавать Вам свой "вес", траст, и ссылочную массу. Тем самым увеличивая траст, доверие поисковиков, быстрое индексирование, рост позиций, рост ссылочной массы и т.д...

Вся работа займет по времени 2-3 недели и Вы увидите отличный результат! Ваш сайт "оживет" в сети интернет!

100% предоплата (Принимаю по карте, Вебмани, ЯДеньги, Киви).

Связаться со мной Вы можете уже прямо сейчас по почте proxrum$@$mail.ru с темой "ПРОДВИЖЕНИЕ САЙТА ПО СКИДКЕ" (удалите пожалуйста два символа $). У меня нет выходных, я не компания. Я частник! И работаю, стараюсь, как для себя!

P.S. Будет отлично, если у вас на сайте стоит счетчик Яметрики (там есть важные ключевые фразы) и у Вас есть более удобная связь (аська, скайп, или вайбер). Благодарю!

С Уважением!

viagra for sale <a href="https://saresltd.com/">buy generic viagra online</a> viagra tablets <a href=https://saresltd.com/>generic viagra review</a>

buy viagra uk <a href="http://www.viagenericahecv.com/">generic viagra reviews</a> generic viagra <a href=http://www.viagenericahecv.com/>when will viagra go generic</a>

side effects of viagra <a href="http://dejviagram.com/">free viagra samples online</a> purchase viagra online <a href=http://dejviagram.com/>buy viagra online usa</a>

side effects of viagra <a href="http://dejviagram.com/">free viagra samples online</a> purchase viagra online <a href=http://dejviagram.com/>buy viagra online usa</a>

cialis 20mg <a href="http://gocialisgjb.com/">generic cialis online</a> cialis 5mg <a href="http://gocialisgjb.com/">buying cialis online safely</a>

cialis 20mg <a href="http://gocialisgjb.com/">generic cialis online</a> cialis 5mg <a href="http://gocialisgjb.com/">buying cialis online safely</a>

cialis 20mg <a href="http://gocialisgjb.com/">generic cialis online</a> cialis 5mg <a href="http://gocialisgjb.com/">buying cialis online safely</a>

cialis 20mg <a href="http://gocialisgjb.com/">generic cialis online</a> cialis 5mg <a href="http://gocialisgjb.com/">buying cialis online safely</a>

liquid tadalafil <a href="http://valcialisns.com/">best place to buy cialis</a> cialis price <a href=http://valcialisns.com/>cialis generic</a>

liquid tadalafil <a href="http://valcialisns.com/">best place to buy cialis</a> cialis price <a href=http://valcialisns.com/>cialis generic</a>

no prescription cialis <a href="http://hopcialisraj.com/">cialis generic name</a> online cialis <a href=http://hopcialisraj.com/>buying cialis online usa</a>

no prescription cialis <a href="http://hopcialisraj.com/">cialis generic name</a> online cialis <a href=http://hopcialisraj.com/>buying cialis online usa</a>

no prescription cialis <a href="http://hopcialisraj.com/">cialis generic name</a> online cialis <a href=http://hopcialisraj.com/>buying cialis online usa</a>

viagra for sale <a href="http://genericonlineviaqra.com/">cheap viagra free shipping</a> buy viagra online no prescription <a href=http://genericonlineviaqra.com/>how to buy viagra online</a>

viagra for sale <a href="http://genericonlineviaqra.com/">cheap viagra free shipping</a> buy viagra online no prescription <a href=http://genericonlineviaqra.com/>how to buy viagra online</a>

viagra for sale <a href="http://genericonlineviaqra.com/">cheap viagra free shipping</a> buy viagra online no prescription <a href=http://genericonlineviaqra.com/>how to buy viagra online</a>

women viagra <a href="http://newviagrakfv.com/">viagra online canadian pharmacy</a> canada viagra <a href="http://newviagrakfv.com/">online viagra prescription</a>

Yep, f*kin sp*am. Yes, yes, yes, AGAIN. And - yes, IT F*KIN WORKS BECAUSE YOU READ IT! :)
Because XEvil 4.0 WAS RELEASED! It's bypass ANY captcha included ReCaptcha-2 and ReCaptcha-3.
Neeed more info (just to...maybe kill this Evil? ;))

Just Google or YouTube for it.
You'll be impressed.

Peace! :)

tadalafil tablets 20 mg <a href="http://drcialonlinedkb.com/">cialis online</a> purchase cialis <a href=http://drcialonlinedkb.com/>click for more info</a>

generic viagra reviews <a href="http://onlineviaqer.com/">viagra online</a> viagra 50mg <a href="http://onlineviaqer.com/">viagra online prescription</a>

generic viagra reviews <a href="http://onlineviaqer.com/">viagra online</a> viagra 50mg <a href="http://onlineviaqer.com/">viagra online prescription</a>

Приветствую всех!
Нашел удивительную фотосессию на этом сайте: http://coolrobo.ru :
http://coolrobo.ru/foto-prikoly-interesnoe/898-umirayuschie-tradicii-ryb... <b> Умирающие традиции рыбалки на сваях в Шри-Ланке </b>
<a href=http://coolrobo.ru/foto-prikoly-interesnoe/6527-gumilev-vs-voloshin-posl... Гумилев vs Волошин: последняя в ХХ веке дуэль поэтов </a>
http://coolrobo.ru/foto-prikoly-interesnoe/1435-zasnul-ryadom-s-zaryazha...

Приветствую всех!
Нашел удивительную фотосессию на этом сайте: http://coolrobo.ru :
http://coolrobo.ru/foto-prikoly-interesnoe/898-umirayuschie-tradicii-ryb... <b> Умирающие традиции рыбалки на сваях в Шри-Ланке </b>
<a href=http://coolrobo.ru/foto-prikoly-interesnoe/6527-gumilev-vs-voloshin-posl... Гумилев vs Волошин: последняя в ХХ веке дуэль поэтов </a>
http://coolrobo.ru/foto-prikoly-interesnoe/1435-zasnul-ryadom-s-zaryazha...

Привет всем! прикольный у вас сайт!
Нашел хорошую базу кино: <a href=http://kinokub.net/>смотреть сериал сверхъестественное бесплатно в хорошем качестве</a>
Здесь: В хорошем качестве hd лучшие фэнтези http://kinokub.net/fentezi/ список 2018
Здесь: фильмы онлайн в хорошем качестве драмы http://kinokub.net/drama/ список 2018
Здесь: <a href=http://kinokub.net/dokumentalnyy/>документальные фильмы 2018</a> документальное фильмы онлайн бесплатно хорошего качества список 2017
Тут: http://kinokub.net/fentezi/9882-detektiv-drezden-sekretnye-materialy-dos... <b> Смотреть Детектив Дрезден: Секретные материалы / Досье Дрездена / The Dresden Files (Сезон 1) (2007–2008) онлайн бесплатно </b>
Здесь: http://kinokub.net/uzhasy/3042-pogovori-s-mertvecom-toku-tu-za-deddo-201...

buy viagra uk <a href="http://vigrageneic.com/">generic for viagra</a> brand viagra <a href=http://vigrageneic.com/>buy viagra online</a>

buy viagra uk <a href="http://vigrageneic.com/">generic for viagra</a> brand viagra <a href=http://vigrageneic.com/>buy viagra online</a>

buy female viagra <a href="http://sexviagen.com/">viagra generic name</a> viagra generic online <a href=http://sexviagen.com/>viagra generic</a>

Bruu
What?

<a href=http://mybuyonline.hopto.org/>My Buy Online Top</a>

Bruu
What?

<a href=http://mybuyonline.hopto.org/>My Buy Online Top</a>

Write My Paper - EssayErudite.com

Looking for an expert to <a href=https://essayerudite.com/write-my-paper/>write my paper</a> for you? You are at the right place.
Providing superior writing service appears to be our main specialization and passion.
Our website is the best destination for every English-speaking student who calls for assistance when handling his or her daily academic tasks.

<a href="https://essayerudite.com/write-my-paper/" />write my paper</a>

Write My Paper - https://essayerudite.com/write-my-paper/

Essay Writing Service - EssayErudite.com

Our <a href=https://essayerudite.com>essay writing service</a> provides a full-scale writing assistance accessible online 24/7.
Apart from many other writing companies, we are rather picky when forming a professional staff of experts.
Moreover, we try to make our every customer feel safe and pleased with the service.

<a href="https://essayerudite.com" />essay writing service</a>

Essay Writing Service - https://essayerudite.com

Write My Essay - EssayErudite.com

Fed up of typing "who can write my essay" in the search bar?
Would you like to have a reliable helper always by your side?
Our website will come as an excellent solution to <a href=https://essayerudite.com/write-my-essay/>write my essay</a> for everyone!

<a href="https://essayerudite.com/write-my-essay/" />write my essay</a>

Write My Essay - https://essayerudite.com/write-my-essay/

Hello.

Write My Paper - EssayErudite.com

Looking for an expert to <a href=https://essayerudite.com/write-my-paper/>write my paper</a> for you? You are at the right place.
Providing superior writing service appears to be our main specialization and passion.
Our website is the best destination for every English-speaking student who calls for assistance when handling his or her daily academic tasks.

<a href="https://essayerudite.com/write-my-paper/" />write my paper</a>

Write My Paper - https://essayerudite.com/write-my-paper/

<a href=https://essayerudite.com/buy-essays-online/>buy essay online</a>
<a href=https://essayerudite.com/buy-essay/>buy essays online</a>
<a href=https://essayerudite.com/write-my-paper/>write my papers</a>
<a href=https://essayerudite.com/write-my-research-paper/>research paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>dissertation writing services</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheap essay writing service</a>
<a href=https://essayerudite.com/write-essay-for-me/>writing my essay</a>
<a href=https://essayerudite.com/college-paper-writing-service/>college paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>write my dissertation</a>
<a href=https://essayerudite.com/thesis-writing-service/>phd thesis writing service</a>
<a href=https://essayerudite.com/do-my-homework/>math homework help</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheapest essay writing service</a>
<a href=https://essayerudite.com/assignment-help/>assignment help online</a>
<a href=https://essayerudite.com/assignment-help/>accounting assignment help</a>
<a href=https://essayerudite.com/buy-essays-online/>buy essays</a>

Write My Paper - EssayErudite.com

Looking for an expert to <a href=https://essayerudite.com/write-my-paper/>write my paper</a> for you? You are at the right place.
Providing superior writing service appears to be our main specialization and passion.
Our website is the best destination for every English-speaking student who calls for assistance when handling his or her daily academic tasks.

<a href="https://essayerudite.com/write-my-paper/" />write my paper</a>

Write My Paper - https://essayerudite.com/write-my-paper/

<a href=https://essayerudite.com/buy-essays-online/>buy essay online</a>
<a href=https://essayerudite.com/buy-essay/>buy essays online</a>
<a href=https://essayerudite.com/write-my-paper/>write my papers</a>
<a href=https://essayerudite.com/write-my-research-paper/>research paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>dissertation writing services</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheap essay writing service</a>
<a href=https://essayerudite.com/write-essay-for-me/>writing my essay</a>
<a href=https://essayerudite.com/college-paper-writing-service/>college paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>write my dissertation</a>
<a href=https://essayerudite.com/thesis-writing-service/>phd thesis writing service</a>
<a href=https://essayerudite.com/do-my-homework/>math homework help</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheapest essay writing service</a>
<a href=https://essayerudite.com/assignment-help/>assignment help online</a>
<a href=https://essayerudite.com/assignment-help/>accounting assignment help</a>
<a href=https://essayerudite.com/buy-essays-online/>buy essays</a>

Write My Paper - EssayErudite.com

Looking for an expert to <a href=https://essayerudite.com/write-my-paper/>write my paper</a> for you? You are at the right place.
Providing superior writing service appears to be our main specialization and passion.
Our website is the best destination for every English-speaking student who calls for assistance when handling his or her daily academic tasks.

<a href="https://essayerudite.com/write-my-paper/" />write my paper</a>

Write My Paper - https://essayerudite.com/write-my-paper/

<a href=https://essayerudite.com/buy-essays-online/>buy essay online</a>
<a href=https://essayerudite.com/buy-essay/>buy essays online</a>
<a href=https://essayerudite.com/write-my-paper/>write my papers</a>
<a href=https://essayerudite.com/write-my-research-paper/>research paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>dissertation writing services</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheap essay writing service</a>
<a href=https://essayerudite.com/write-essay-for-me/>writing my essay</a>
<a href=https://essayerudite.com/college-paper-writing-service/>college paper help</a>
<a href=https://essayerudite.com/dissertation-writing-service/>write my dissertation</a>
<a href=https://essayerudite.com/thesis-writing-service/>phd thesis writing service</a>
<a href=https://essayerudite.com/do-my-homework/>math homework help</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheapest essay writing service</a>
<a href=https://essayerudite.com/assignment-help/>assignment help online</a>
<a href=https://essayerudite.com/assignment-help/>accounting assignment help</a>
<a href=https://essayerudite.com/buy-essays-online/>buy essays</a>

Essay Writing Service - EssayErudite.com

Our <a href=https://essayerudite.com>essay writing service</a> provides a full-scale writing assistance accessible online 24/7.
Apart from many other writing companies, we are rather picky when forming a professional staff of experts.
Moreover, we try to make our every customer feel safe and pleased with the service.

<a href="https://essayerudite.com" />essay writing service</a>

Essay Writing Service - https://essayerudite.com

<a href=https://essayerudite.com/buy-essay/>buy essay cheap</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheap paper</a>
<a href=https://essayerudite.com/buy-essay/>buy essay on</a>
<a href=https://essayerudite.com/buy-essay/>purchase essay</a>
<a href=https://essayerudite.com/buy-essays-online/>buy essays</a>
<a href=https://essayerudite.com/write-essay-for-me/>write essays for money</a>
<a href=https://essayerudite.com/thesis-writing-service/>thesis writing service uk</a>
<a href=https://essayerudite.com/write-essay-for-me/>write an essay for me</a>
<a href=https://essayerudite.com/thesis-writing-service/>thesis writer</a>
<a href=https://essayerudite.com/write-my-essay/>write my essay for me</a>

Essay Writing Service - EssayErudite.com

Our <a href=https://essayerudite.com>essay writing service</a> provides a full-scale writing assistance accessible online 24/7.
Apart from many other writing companies, we are rather picky when forming a professional staff of experts.
Moreover, we try to make our every customer feel safe and pleased with the service.

<a href="https://essayerudite.com" />essay writing service</a>

Essay Writing Service - https://essayerudite.com

<a href=https://essayerudite.com/buy-essay/>buy essay cheap</a>
<a href=https://essayerudite.com/cheap-essay-writing-service/>cheap paper</a>
<a href=https://essayerudite.com/buy-essay/>buy essay on</a>
<a href=https://essayerudite.com/buy-essay/>purchase essay</a>
<a href=https://essayerudite.com/buy-essays-online/>buy essays</a>
<a href=https://essayerudite.com/write-essay-for-me/>write essays for money</a>
<a href=https://essayerudite.com/thesis-writing-service/>thesis writing service uk</a>
<a href=https://essayerudite.com/write-essay-for-me/>write an essay for me</a>
<a href=https://essayerudite.com/thesis-writing-service/>thesis writer</a>
<a href=https://essayerudite.com/write-my-essay/>write my essay for me</a>

viagra pills <a href="http://onlineviaqer.com/">viagra online cheap</a> viagra without prescription <a href="http://onlineviaqer.com/">buy viagra online canada</a>

Write My Essay - EssayErudite.com

Fed up of typing "who can write my essay" in the search bar?
Would you like to have a reliable helper always by your side?
Our website will come as an excellent solution to <a href=https://essayerudite.com/write-my-essay/>write my essay</a> for everyone!

<a href="https://essayerudite.com/write-my-essay/" />write my essay</a>

Write My Essay - https://essayerudite.com/write-my-essay/

<a href=https://essayerudite.com/college-essay-help/>writing a college essay</a>
<a href=https://essayerudite.com/best-essay-writing-service/>best online essay writing service</a>
<a href=https://essayerudite.com/thesis-writing-service/>help me write a thesis</a>
<a href=https://essayerudite.com/do-my-homework/>homework hotline</a>
<a href=https://essayerudite.com/college-essay-help/>writing college essays</a>
<a href=https://essayerudite.com/write-my-paper/>write my paper</a>
<a href=https://essayerudite.com/dissertation-writing-service/>dissertation help</a>
<a href=https://essayerudite.com/do-my-homework/>xyz homework</a>
<a href=https://essayerudite.com/dissertation-writing-service/>affordable dissertation writing</a>
<a href=https://essayerudite.com/write-my-research-paper/>write my term paper for me</a>
<a href=https://essayerudite.com/write-my-research-paper/>my research paper writing</a>
<a href=https://essayerudite.com/do-my-homework/>homework helper</a>
<a href=https://essayerudite.com/write-my-research-paper/>write research paper for me</a>
<a href=https://essayerudite.com/buy-essays-online/>buy an essay</a>
<a href=https://essayerudite.com/buy-essays-online/>buy an essay online</a>

Write My Essay - EssayErudite.com

Fed up of typing "who can write my essay" in the search bar?
Would you like to have a reliable helper always by your side?
Our website will come as an excellent solution to <a href=https://essayerudite.com/write-my-essay/>write my essay</a> for everyone!

<a href="https://essayerudite.com/write-my-essay/" />write my essay</a>

Write My Essay - https://essayerudite.com/write-my-essay/

<a href=https://essayerudite.com/college-essay-help/>writing a college essay</a>
<a href=https://essayerudite.com/best-essay-writing-service/>best online essay writing service</a>
<a href=https://essayerudite.com/thesis-writing-service/>help me write a thesis</a>
<a href=https://essayerudite.com/do-my-homework/>homework hotline</a>
<a href=https://essayerudite.com/college-essay-help/>writing college essays</a>
<a href=https://essayerudite.com/write-my-paper/>write my paper</a>
<a href=https://essayerudite.com/dissertation-writing-service/>dissertation help</a>
<a href=https://essayerudite.com/do-my-homework/>xyz homework</a>
<a href=https://essayerudite.com/dissertation-writing-service/>affordable dissertation writing</a>
<a href=https://essayerudite.com/write-my-research-paper/>write my term paper for me</a>
<a href=https://essayerudite.com/write-my-research-paper/>my research paper writing</a>
<a href=https://essayerudite.com/do-my-homework/>homework helper</a>
<a href=https://essayerudite.com/write-my-research-paper/>write research paper for me</a>
<a href=https://essayerudite.com/buy-essays-online/>buy an essay</a>
<a href=https://essayerudite.com/buy-essays-online/>buy an essay online</a>

quick payday loans online <a href="https://mobilleaderapply.com/">advanced payday loans</a> easy loans <a href="https://mobilleaderapply.com/">1000 payday loans</a>

quick payday loans online <a href="https://mobilleaderapply.com/">advanced payday loans</a> easy loans <a href="https://mobilleaderapply.com/">1000 payday loans</a>

Pages