The file exists in %SystemRoot%\System32\Drivers\etc\services, however many applications don't bother resolving their service name to a port via the getservbyname API and just have their port number information hard-coded into their binaries. There seems to be less of a culture of using the services file on Windows than on *nix. So, you can find the file and edit it, but there's no guarantee that any particular application will use the services file anyway.
I'll combine both Sergey and Squillman's answers.
The file exists in
%SystemRoot%\System32\Drivers\etc\services
, however many applications don't bother resolving their service name to a port via the getservbyname API and just have their port number information hard-coded into their binaries. There seems to be less of a culture of using theservices
file on Windows than on *nix. So, you can find the file and edit it, but there's no guarantee that any particular application will use theservices
file anyway.No, usually port info is stored in the registry or an applications specific config file(s).
Are you looking to find what's listening on your server?
Are you looking for %WindowsDir%\System32\drivers\etc\services ?