🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #715

'could not bind socket' error

#715
From: Dennis Jones
Date: Tue, 20 Nov 2007 17:47
29 lines
2002 bytes
Hello,

I have an application which frequently fails to start with the message:

"Could not bind socket. Address and port are already in use."

This happens (for no apparent reason) often enough that it is time for me to 
start investigating it.

When I got to my computer this morning, my Anti-Virus program (AVG) had a 
message up that said my computer needed to restart to complete the update 
process.  But I wanted to check email and a few other things before 
rebooting, so one of the first things I did was run the application, and 
BOOM, I get the error.  The application had not been running for at least a 
day, and no other server applications use the same port.  I have checked 
"netstat -a" for any indication that the port is in use, but am never able 
to find anything.  Whenever this happens, I am forced to reboot the compute 
to clear the cause (whatever it is) so I can run the application.

What the heck is going on, and is there anything I can do to fix it?  Or is 
it the operating system's fault?

I am using a recent snapshot of Indy9 with BCB6 on XP sp2.

Can anyone offer a solution or a path toward a solution?

Thank you,

- Dennis 
Technical Details
Message-ID: <47431d9f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,128d041863311899,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dennis Jones" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: 'could not bind socket' error
Date: Tue, 20 Nov 2007 09:47:12 -0800
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 71.245.109.58
Message-ID: <47431d9f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195580831 71.245.109.58 (20 Nov 2007 09:47:11 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail