github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/helper/freeport/ephemeral_windows.go (about)

     1  //+build windows
     2  
     3  package freeport
     4  
     5  // For now we hard-code the Windows ephemeral port range, which is documented by
     6  // Microsoft to be in this range for Vista / Server 2008 and newer.
     7  //
     8  // https://support.microsoft.com/en-us/help/832017/service-overview-and-network-port-requirements-for-windows
     9  func getEphemeralPortRange() (int, int, error) {
    10  	return 49152, 65535, nil
    11  }