boardstretcher Posted October 9, 2009 Share Posted October 9, 2009 I was hoping to make a diagnostic page for remote users that would *automatically* try to open 3 pages on 3 different ports and report back the result by returning to the original page. Which they would then send the results to me and I could troubleshoot any problems. Basically this is to make sure that they have the proper ports allowed through their proxy. Any ideas? Link to comment https://forums.phpfreaks.com/topic/177103-automated-port-checking/ Share on other sites More sharing options...
Bricktop Posted October 9, 2009 Share Posted October 9, 2009 Hi boardstretcher, If you use PHP's fsockopen() function you can specify port numbers. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/177103-automated-port-checking/#findComment-933783 Share on other sites More sharing options...
GKWelding Posted October 9, 2009 Share Posted October 9, 2009 Bricktop's right, fsockopen will return false if that port isn't open, that's what you need. Don't forget to close afterwards though! Link to comment https://forums.phpfreaks.com/topic/177103-automated-port-checking/#findComment-933784 Share on other sites More sharing options...
boardstretcher Posted October 9, 2009 Author Share Posted October 9, 2009 Thanks, but fsockopen would only prove that one server can talk to another. I need an idea of how to use a webpage to check the connection between the *user machine* and the port on the remote machine. To make sure that their proxy is allowing traffic over non-standard ports (Jboss, Tomcat, etc...) Link to comment https://forums.phpfreaks.com/topic/177103-automated-port-checking/#findComment-933785 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.