Article View: borland.public.cppbuilder.internet.socket
Article #717Re: 'could not bind socket' error
From: Remy Lebeau (TeamB)
Date: Tue, 20 Nov 2007 20:24
Date: Tue, 20 Nov 2007 20:24
24 lines
1695 bytes
1695 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message news:47431d9f$1@newsgroups.borland.com... > I have an application which frequently fails to start with the message: > > "Could not bind socket. Address and port are already in use." That happens when you specify a local IP/Port to bind the socket to before opening it, but the IP/Port is already in use by another socket. > The application had not been running for at least a day, and no > other server applications use the same port. So this error is happening for a server socket and not a clien socket? Is there anotehr instance of the app already running? > I have checked "netstat -a" for any indication that the port is in > use, but am never able to find anything. Why not? Gambit
Technical Details
Message-ID:
<474342ce@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47431d9f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,128d041863311899 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47431d9f$1@newsgroups.borland.com> Subject: Re: 'could not bind socket' error Date: Tue, 20 Nov 2007 12:24:43 -0800 Lines: 26 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <474342ce@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195590350 207.178.157.90 (20 Nov 2007 12:25:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail