how can i find out if a certain server is online, and if he has a port open to incoming connections?
the server to check is a game server..
i tried this:
Code: Select all
set sidx ""
set sidx [connect $srvrhost $srvrport]
if {$sidx == ""} {
putserv "privmsg $chan :Server is offline"
} else {
putserv "privmsg $chan :Server is online"
}
another problem, is that if i get a DNS error the script blocks
bye