Hi,
I'm looking for a solution to check whether the host on which the installer is executed can connect to a remote location (and specific port). For example, can the host connect to ip x.x.x.x on port y? I have a service running on a particular port on a remote host that returns the string 'OK' when connecting to it and I want to verify (during installation) whether this service can be reached.
I've found the ports.nsh script ... but this can only be used to check local ports. Is there any alternative that supports checking remote connections?
Any feedback is appreciated.
Thanks
Check remote port
3 posts
If it always returns OK no matter what the input is then you can maybe pretend that it is a HTTP server:
inetc::head /SILENT /WEAKSECURITY /NOPROXY /TOSTACK http://216.58.209.110:80/gag "" /END
Pop $0
Pop $1
DetailPrint Status=$0 ; OK or error from inetc
DetailPrint Response=$1 ; Data from server Hi,
Works like a charm.
Thanks!
Works like a charm.
Thanks!