I need to determine, what web server (IIS, Apache, Jetty) is running on port 80 in Java.
Are there any solutions to get the informations via port 80?
Thanx and reguards
Stefan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can ask it – issue a HEAD request, e.g. open a TCP connection on port 80 and just send
or
and the reply should contain a Server line
amongst other things.
If you want to ask the OS which process, though, I don’t know a Java-portable way. Command line you would run
netstat -anoor (-anpon linux I think) which will give you the process number listening on port 80, and then you can look that up to find out exactly which server has the port.