Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a file on Windows 2008 similar to the /etc/services file in linux?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

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 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.

share|improve this answer
    
Ah duh. Should have thought to look there. Ty –  frogstarr78 Aug 29 '10 at 2:46
    
+1 I actually forgot about that file because I have never seen it used. –  squillman Aug 29 '10 at 3:21
add comment

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?

share|improve this answer
    
No, I was actually helping someone else with their Windows system and hoping that such a file existed that I could refer them to for "common" ports. Ty for your response though. –  frogstarr78 Aug 29 '10 at 2:48
add comment

Are you looking for %WindowsDir%\System32\drivers\etc\services ?

share|improve this answer
    
yep that's the one –  frogstarr78 Oct 6 '10 at 23:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.