Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 18th September 2006, 08:33   #1
CultiMAN
Junior Member
 
Join Date: Aug 2006
Posts: 3
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
CultiMAN is offline   Reply With Quote
Old 18th September 2006, 19:12   #2
CultiMAN
Junior Member
 
Join Date: Aug 2006
Posts: 3
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
CultiMAN is offline   Reply With Quote
Old 21st September 2006, 05:49   #3
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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).
Takhir is offline   Reply With Quote
Old 25th September 2006, 14:43   #4
CultiMAN
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thx Takhir! That was a very good response to my problem!
CultiMAN is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump