Article View: borland.public.jbuilder.java.api
Article #2312Re: socket failure - please help
From: John McGrath TeamB
Date: Thu, 29 Mar 2001 08:43
Date: Thu, 29 Mar 2001 08:43
25 lines
1462 bytes
1462 bytes
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.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.152c97c6e63c506898a0cb@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60References:
<3ac219f5_2@dnews>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 01:00:05 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: socket failure - please help Date: Thu, 29 Mar 2001 03:43:43 -0500 Message-ID: <MPG.152c97c6e63c506898a0cb@forums.borland.com> References: <3ac219f5_2@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: 29 Mar 2001 00:39:14 -0800, 209.92.40.60 Lines: 25 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60