Retrieve a port alias from Java
I have an existing port alias defined in the Winnt\System32\drivers\etc\Services file: msgconsole 15200/tcp
How can I retrieve the port number '15200' from within a Java program by using the alias of 'msgconsole'?
Web Development
I have an existing port alias defined in the Winnt\System32\drivers\etc\Services file: msgconsole 15200/tcp
How can I retrieve the port number '15200' from within a Java program by using the alias of 'msgconsole'?
by okujava
hi! from within java program u can't retrieve the port number! what u could do is, call a shell program from your java code and parse the output of it...
regards
s.okujava
This discussion is closed to new replies.
Sort by Trending