Discussion:
IW standalone/service not starting - port allready in use
(too old to reply)
Pekka Paunio
2008-06-03 14:45:43 UTC
Permalink
Hi,

we have a problem with installing IW-application in our server. We have
reserved port (8892) for that application. Netstat states that it is not in
use.

When we try to start a standalone version or try to start service version,
the *.err states: '3.6.2008 14:07:33 Could not bind socket. Address and port
are already in use.'

Exactly the same binaries run ok on a virgin XP-machine (No Delphi
installed).

Any ideas?


Pekka
Bob Swart
2008-06-03 15:28:12 UTC
Permalink
Hi Pekka,
Post by Pekka Paunio
When we try to start a standalone version or try to start service version,
the *.err states: '3.6.2008 14:07:33 Could not bind socket. Address and port
are already in use.'
Just as a test, what happens if you assign the port to 8893 instead of
8892 (just to see if it's a problem with the application or the port
and/or firewall).
If 8893 succeeds, then I would check again at the port - otherwise, it
may be that your application itself has a problem binding the socket.
Perhaps it's blocked by your (Windows?) firewall ??
Post by Pekka Paunio
Exactly the same binaries run ok on a virgin XP-machine (No Delphi
installed).
Personally, I doubt if the problem has to do with the Delphi
installation, but I would check firewall settings...
Post by Pekka Paunio
Pekka
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Personal courseware + e-mail support http://www.ebob42.com/courseware
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Pekka Paunio
2008-06-11 08:26:55 UTC
Permalink
The problem is that the compiled standalone (and service) sticks to port
8888 and does not use port 8892 it was assigned to in servercontroller.

Now i need to fix this problem - any ideas?

Pekka
Post by Bob Swart
Hi Pekka,
Post by Pekka Paunio
When we try to start a standalone version or try to start service
version, the *.err states: '3.6.2008 14:07:33 Could not bind socket.
Address and port are already in use.'
Just as a test, what happens if you assign the port to 8893 instead of
8892 (just to see if it's a problem with the application or the port
and/or firewall).
If 8893 succeeds, then I would check again at the port - otherwise, it may
be that your application itself has a problem binding the socket. Perhaps
it's blocked by your (Windows?) firewall ??
Post by Pekka Paunio
Exactly the same binaries run ok on a virgin XP-machine (No Delphi
installed).
Personally, I doubt if the problem has to do with the Delphi installation,
but I would check firewall settings...
Post by Pekka Paunio
Pekka
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Personal courseware + e-mail support http://www.ebob42.com/courseware
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Pekka Paunio
2008-06-11 08:43:12 UTC
Permalink
Problem solved

There were in the code leftovers from Arcana ServerManager and it loaded the
portnumber from a registry key...

Pekka
Post by Pekka Paunio
The problem is that the compiled standalone (and service) sticks to port
8888 and does not use port 8892 it was assigned to in servercontroller.
Now i need to fix this problem - any ideas?
Pekka
Post by Bob Swart
Hi Pekka,
Post by Pekka Paunio
When we try to start a standalone version or try to start service
version, the *.err states: '3.6.2008 14:07:33 Could not bind socket.
Address and port are already in use.'
Just as a test, what happens if you assign the port to 8893 instead of
8892 (just to see if it's a problem with the application or the port
and/or firewall).
If 8893 succeeds, then I would check again at the port - otherwise, it
may be that your application itself has a problem binding the socket.
Perhaps it's blocked by your (Windows?) firewall ??
Post by Pekka Paunio
Exactly the same binaries run ok on a virgin XP-machine (No Delphi
installed).
Personally, I doubt if the problem has to do with the Delphi
installation, but I would check firewall settings...
Post by Pekka Paunio
Pekka
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Personal courseware + e-mail support http://www.ebob42.com/courseware
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Loading...