Archive: Check if http port is used


Check if http port is used
Hi,

I want to do the following:
I have an application (web-app) that i normally install on port 8080. Over time I noticed that a lot of other software uses this port, so i want to change it during installation, but only if port 8080 is in use.

Question:
How do i check that port 8080 is in use on localhost?

I've tried to use the internet plugin, but it cannot handle ports other than port 80 (default). I just want to do a simple check if i get a HTTP response from that port.

Kind regards
Kristian Theilade, DK


Please, can anyone help with this? I just need to get the replycode from a webpage such as: http://localhost:8181/index.html

Thx. Kristian


http://nsis.sourceforge.net/Inetc_plug-in 'head' call. You can also parse 'netstat -a' console output using ExecDos plug-in (or nsExec with output redirection) for the LISTENING ports (if this works on Win9x).


Thx Takhir! That was a very good response to my problem!