github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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  }