|24 Mar 2012||#1|
fsockopen cannot connect to some mail server ports
I have a web server and a mail server running under Win 7 on my LAN, most smoothly,
but I want to be alerted when the servers appear down to the WAN.
So I wrote a PHP script and sent it to a remote web server,
and invoke the script from my web browser on the LAN.
The script checks my domain's MX records for hosts,
then converts the mail server's host name to IP,
then connects to IP's IMAPS, POP3S and SMTPS ports (933, 995, 465)
and receives the welcome messages.
It then connects to my web server on HTTPS and HTTP ports (443 and 80),
and sends a simple HEAD request and receives the response.
At each stage the answers are checked against what is expected
and the results are reported on the web page.
That the script works for :465 attests to the correctness of the PHP script.
The only problem is that the connections to :993 and :995 always fail:
"110 Connection timed out"
while the others always work OK.
Meanwhile I have email clients connecting successfully on :993 and :995 all the time.
14:00:36 xxxxx.org.au MX records mail.xxxxx.org.au
14:00:37 mail.xxxxx.org.au IP ad 122.148.xx.xx
14:00:37 ssl://122.148.xx.xx:993 110 Connection timed out
14:00:42 ssl://122.148.xx.xx:995 110 Connection timed out
14:00:47 ssl://122.148.xx.xx:465 220 122-148-xx-xx.static.dsl.dodo.com.au
14:00:48 ssl://122.148.xx.xx:443 200 OK
14:00:50 tcp://122.148.xx.xx:80 200 OK
14:00:51 Waiting 5 minutes ...
So I asked the remote server's support staff if they were blocking this kind of traffic.
I don't see why they should, but I am at a loss for any other explanation.
They don't seem to understand the question, and can't give me a straight answer.
So my question to you is:
Have I successfully demonstrated that they ARE blocking this kind of traffic, or could there be some other explanation ?
(Bear in mind that there are clients accessing the servers without a problem all the time, apart from when the internet network partially fails)
The key PHP (5.2.17) statement is:
$server = fsockopen( ($transport.$ip.':'.$port), $errno, $errstring, $timeout);
but it does the same thing with stream_socket_client() .
|My System Specs|
|Similar help and support threads|
Can't connect both mouse and keyboard in USB ports in back of pc
It's a pretty specific problem. For some time I've had issues with windows forgetting or losing connection to both the mouse and keyboard about a minute after windows started up. It would usually work after restarting, but would show up again about once in every 10 startups. Tried to fix it...
|Hardware & Devices|
can't connect anything to USB ports
as soon as i connect anything to the usb port, i get the message "USB DEVICE NOT RECOGNISED".... i have tried to go back to various restore points but these all fail to complete .... any suggestions please !
|Hardware & Devices|
AT&T Internet Server Ports
I am having to set up my internet connection again. I am with AT&T in Texas. My domain is sbcglobal. net I have everything except my Incoming and Outgoing Server Port Numbers. If any of you have AT&T, let me know what those numbers should be. AT&T had changed them about a year or so ago and I...
|Network & Sharing|
Server (WINDOWS 2008) Mail Issue (MAIL ENABLE)
Hi I am desperate to resolve this issue, as I have been getting this 0x800ccc0e error from Outlook on my laptop, regarding failure to connect to my virtual server (apache tomcat running windows server 2008) I tried to connect to my email via Webmail on Plesk, and received a failed login. The...
|Browsers & Mail|
How to connect Windows Mail to Exchange server
How can I estabilsh an account in Windows Mail and retrieve mail from MS Exchange server? Apparently Exchange was an option when establishing an account in Outlook.
|Browsers & Mail|
Server Ports Remapping Automatically
Hey guys, I'm trying to host several servers on my box running Windows 7, on UDP ports 2302/2303. I've forwarded the ports in my modem, however, it seems my ports are being remapped to a port at random usually in the 60,000 range. Knowing this i forwarded ALL the ports on my modem, so when the...
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
All times are GMT -5. The time now is 22:07.