Archive: Is XXX port already used ?


Is XXX port already used ?
Hi all,

just wanna know if there is some NSIS lib to do that, or if I have to run my little shell script based on netstat.

Thks,

Gal'


Try searching the forums.
This one may help:
http://forums.winamp.com/showthread.php?threadid=255725

Stu


I ran an unsuccessful search before. Thank you Afrow ;)

Gal'


I've written a new function to test this. It works on 98 and above and NT4 SP4 and above.

It's used via LogicLib:

${If} ${TCPPortOpen} 80
DetailPrint "a webserver is running"
${ElseIf} ${UDPPortOpen} 80
DetailPrint "a very peculiar webserver is running"
${EndIf}
I'll upload it to the Wiki once it stops being so slow.

Very nice :)

Stu


Working nice here, this is a better way to get it without calling netstat executable. Thks ;)

Gal'


Just a question... did you plan to integrate this lib to later NSIS deliveries ?

Gal'


http://nsis.sourceforge.net/Check_open_ports


Yes it is nice ... but.... I would like to know if ports.nsh will be included in \include directory or not (I need to describe a design documentation to describe how to set the NSIS development environment, including which plugin to download and so on...)

It is not planned ?

Gal'


No, I don't plan to currently include it in the Include directory.


okay, thanks.