473,471 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error: Unable to create selectable TCP socket

ros
Hi! I have a simple PHP script:

$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "te**@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}

Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error: Unable to create selectable TCP socket (2090 >=
1024)"

What could cause this error?

Thanks!
Mar 15 '08 #1
3 4178
ros wrote:
Hi! I have a simple PHP script:

$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "te**@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}

Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error: Unable to create selectable TCP socket (2090 >=
1024)"

What could cause this error?

Thanks!
The first things I'd want to know are:

1. Is your imap server on the same server as your website? Some hosts
use dedicated systems for mail.

2. If it is on the same system, is your imap server using port 993?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Mar 16 '08 #2
ros
If I use mail.domain.com as server adress, I can connect to port 993
using this script both from remote and from local pc.

$fp = fsockopen("mail.domain.com", 993, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
echo "ok";
fclose($fp);
}

On 16 ÍÁÒ, 17:04, Jerry Stuckle <jstuck...@attglobal.netwrote:
ros wrote:
Hi! I have a simple PHP script:
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "t...@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}
Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error:UnabletocreateselectableTCPsocket(2090 >=
1024)"
What could cause this error?
Thanks!

The first things I'd want to know are:

1. Is your imap server on the same server as your website? Some hosts
use dedicated systems for mail.

2. If it is on the same system, is your imap server using port 993?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Mar 18 '08 #3
ros wrote:
On 16 ÍÁÒ, 17:04, Jerry Stuckle <jstuck...@attglobal.netwrote:
>ros wrote:
>>Hi! I have a simple PHP script:
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "t...@domain.com",
"123");
if(!$mbox) {
echo 'Error: '.imap_last_error().'<br/>';
}
Script works fine from local PC, but results to error when executed at
web
hoster site.
The error is: "Error:UnabletocreateselectableTCPsocket(2090 >=
1024)"
What could cause this error?
Thanks!
The first things I'd want to know are:

1. Is your imap server on the same server as your website? Some hosts
use dedicated systems for mail.

2. If it is on the same system, is your imap server using port 993?


If I use mail.domain.com as server address, I can connect to port 993
using this script both from remote and from local pc.

$fp = fsockopen("mail.domain.com", 993, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
echo "ok";
fclose($fp);
}
(Top posting fixed)

First of all, please don't use domain.com - it's owned by someone.
example.com is explicitly reserved for examples like this.

Next - it mail.example.com the same server? Many ISP's use a different
mail host than the web server for various reasons. You need to ensure
you're connecting to the mail host.

And if it is the same server, does the host have a firewall preventing
you from accessing port 993 from the local host?

P.S. Please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Mar 18 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kmacintyre | last post by:
I am trying to us a simple NetworkStream to transfer a file over tcp. This works most of the time, but one specific file never downloads(.mdb file). It seems to close the socket and I get an...
7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
2
by: tcarasu | last post by:
We have two production servers under the DNS setup. We have installed our web services on both the servers. The web application is also installed in the same servers. When the web application tries...
0
by: Orbit | last post by:
Hi, I hope someone could help me. I have a simple web service that I developed on my laptop that resides within a large web application. It queries Northwind & presents the data in a grid in the...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
1
by: sgawas01 | last post by:
<?php // set some variables $host = "192.168.0.49"; $port = 10000; echo '<pre>'; // don't timeout! set_time_limit(0); // create socket $socket = socket_create(AF_INET, SOCK_STREAM, 0) or...
0
by: =?Utf-8?B?T2xpdmllciBHSUw=?= | last post by:
Hello, I try to post an HTTP message containing an XML document, and I get the following exception : System.Net.WebException: The underlying connection was closed: An unexpected error...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.