is the server online using php - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: is the server online using php (/showthread.php?tid=84144) is the server online using php by Jarrod on 06-05-2008 at 08:53 AM
well i have a shoutcast server running on my pc it's all working with port fowarding and stuff but i want to use some php to test if the port is open or closed(running or shutdown) code:but even if the port is open and https://www.grc.com says it's open the php script says it closed can some one help? RE: is the server online using php by Menthix on 06-05-2008 at 09:06 AM What does $errstr say? RE: is the server online using php by Jarrod on 06-05-2008 at 09:26 AM
i don't know how it works here is the link though and i'll put the server up until 9:00pm AEST RE: is the server online using php by Menthix on 06-05-2008 at 09:31 AM
Try this: code: RE: is the server online using php by Jarrod on 06-05-2008 at 09:48 AM
it doesn't seem to work, RE: is the server online using php by Eljay on 06-05-2008 at 09:50 AM
Well for a start the IP shouldn't contain the "http://" bit at the start RE: is the server online using php by Jarrod on 06-05-2008 at 10:15 AM didn't fix anything RE: is the server online using php by Felu on 06-05-2008 at 10:28 AM Try this http://www.phptoys.com/e107_plugins/content/content.php?content.41 ? RE: is the server online using php by NanaFreak on 06-05-2008 at 10:35 AM
quote:are you sure you have: code:because i just tested it on my localhost and it says that its online =\ RE: is the server online using php by Jarrod on 06-05-2008 at 11:50 AM
NF RE: is the server online using php by ipab on 06-05-2008 at 04:29 PM I think the simpler answer here is that your ISP is blocking all external requests for open ports ... I know my ISP does that. RE: is the server online using php by RaceProUK on 06-05-2008 at 06:03 PM
quote:If that was true, grc.com would show the port stealthed. RE: RE: is the server online using php by segosa on 06-05-2008 at 10:34 PM
quote: More to the point, if that were the case you wouldn't be able to use the internet at all. All that script does is initiate a connection to the IP address, exactly how your browser would if you tried to visit a website. RE: is the server online using php by Jarrod on 06-05-2008 at 11:11 PM
quote:i have ssh set up and https set up for remotely anywhere my isp does not block ports they are just to cool, other people can listen to the shoutcast stream and everything it's just the php script doesn't reflect the fact the port is open but atm it will be closed cos the server is not running is there a service like grc.com i could use and just return values from their page and show them in mine? RE: is the server online using php by RaceProUK on 06-06-2008 at 06:32 PM
quote:Not really: the stealthing is done on incoming traffic. Outgoing traffic is unfiltered, and replies to that are allowed through, as the local port is often well into the client port range. I usually see port numbers of 3000 or more. RE: RE: is the server online using php by segosa on 06-07-2008 at 02:53 PM
quote: I think there was a bit of a misunderstanding. I thought the PHP script was running on his local PC and the shoutcast server elsewhere, not the other way around. Anyway, if the shoutcast server is running on his computer, and he has the port forwarding set up and people are able to connect then there's no reason why the PHP script (which is running on his webhosting or something similar, right?) shouldn't be able to. It can be thought of as just another client. RE: is the server online using php by Jarrod on 06-07-2008 at 10:23 PM that's why I thought there must be a problem with the script hope that means something to the people who know more about php than me, thanx |