You are here: Re: Ping+Port Routine? « PHP Programming Language « IT news, forums, messages
Re: Ping+Port Routine?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация