🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2313

Re: socket failure - please help

#2313
From: Paul Griffiths
Date: Thu, 29 Mar 2001 12:57
25 lines
1903 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.152c97c6e63c506898a0cb@forums.borland.com...
> On Wed, 28 Mar 2001 11:06:22 -0600, Steve Cannon wrote:
>
> > Can someone please tell me why this is failing the a ConnetException:
> > Connection refused. ?  It happens on Windows 2000 and Windows NT 4.0
> > machines on my home intranet.
> >
> >     InetAddress localHostAddr = InetAddress.getLocalHost();
> >     Socket aSocket = new Socket( localHostAddr, 1001);
>
> I would presume that it is because you do not have anything listening
> on port 1001.  To confirm this, try the following from a command
> prompt:
>
>     telnet localhost 1001
>
> My guess is you will get the same error.

Also, many installations are quite fussy about connections to sockets
numbered below 1024.  Try changing the number.


--
Paul Griffiths
Technical Details
Message-ID: <99vbgo$99u$1@news.swan.ac.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!server3.netnews.ja.net!server4.netnews.ja.net!news.swan.ac.uk!not-for-mail
References: <3ac219f5_2@dnews> <MPG.152c97c6e63c506898a0cb@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e3e89319276a1cda
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-03-29 05:06:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!server3.netnews.ja.net!server4.netnews.ja.net!news.swan.ac.uk!not-for-mail
From: "Paul Griffiths" <170765@swan.ac.uk>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: socket failure - please help
Date: Thu, 29 Mar 2001 13:57:57 +0100
Organization: University of Wales Swansea
Lines: 27
Message-ID: <99vbgo$99u$1@news.swan.ac.uk>
References: <3ac219f5_2@dnews> <MPG.152c97c6e63c506898a0cb@forums.borland.com>
NNTP-Posting-Host: cslis03.swan.ac.uk
X-Trace: news.swan.ac.uk 985870680 9534 137.44.140.3 (29 Mar 2001 12:58:00 GMT)
X-Complaints-To: usenet@news.swan.ac.uk
NNTP-Posting-Date: 29 Mar 2001 12:58:00 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700