Windows modifies port data and connection time

Source: Internet
Author: User

The recent failure of the Windows machine to access other machines on the wire. In fact, the local port is not enough to use the cause.

D:\>netsh interface IPv4 show Dynamicportrange protocol=tcp

Protocol TCP Dynamic Port Range

---------------------------------

Start port:49152

Number of ports:16384

D:\>netsh Interface IPv4 Show tcpstats

Mib-ii TCP Statistics

------------------------------------------------------

Timeout Algorithm:van Jacobson ' s algorithm

Minimum timeout:10

Maximum timeout:4294967295

Maximum connections:dynamic

Active opens:402947

Passive opens:989620

Attempts failed:122047

Established resets:49384

Currently established:135

In segments:47651175

Out segments:45510477

retransmitted segments:465369

In errors:0

Out resets:65865

This can be used on the actual port 16,384, you can directly netstat-atn to see the number of each state. If you make a large number of requests outside the local port is not enough.

You can modify the start port:

netsh int ipv4 set dynamicport tcp start=2000 num=63000

netsh int ipv4 set dynamicport UDP start=2000 num=63000

netsh int ipv6 set dynamicport tcp start=2000 num=63000

netsh int ipv6 set dynamicport UDP start=2000 num=63000

Then modify the registry to shorten the time-wait time.

Regedit open the registry and add

DWORD Value

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

"MaxUserPort" =dword:0000fffe

"Tcptimewaitdelay" =dword:0000005 (shortened to 5

Windows modifies port data and connection time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.