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