|
Posted by Jerry Stuckle on 09/21/05 15:05
Adam wrote:
> Hi! I'm trying to write a small application for an online gaming site
> (flight sims), where people can add their local server to a list.
>
> Basically, I just need to be able to loop/ping each respective server
> - via a specific port (2934 or 2935) to see whether the server is
> still "live", so the hosters don't have to manually update their
> status on the site.
>
> Everything I've seen seems overly complex. Efforts so far have
> returned info via a traditional PING, but I can't seem to find an easy
> way of getting the required *port* info. The script would have to run
> from a regular hosted site, so I wouldn't have much access to the
> server's "innards".
>
> Any ideas?
>
> TIA - Adam.
Ping uses an internally defined port for responses - not just any port.
You can't ping a specific port - it wouldn't know how to respond.
Probably the easiest way would be to use fsockopen to open a socket to
the appropriate system/port.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|