🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16263

Problems with sockets

#16263
From: Rustam Budaichiev
Date: Sat, 13 Mar 1999 00:00
30 lines
1572 bytes
Hello!
Can anyone tell me why I'm getting a "Connection refused" exception?

I have clent and server were written in Delphi 3.0. They communicate
themself with sockets. Now I am  writing a client (Java applcation) in
JBulder2.0 and this client must connect to Delphi server. But when I try
to create a socket object I'm getting a "Connection refused" exception.
I'm running on a  WinNT4.0 machine with TCP/IP installed and
functioning. Delphi server listened for socket connections over TCP/IP.
Java client is working right when I connect to ports such 22, 23, 25,
...and other  but it doesn't work when it conects to Delphi server's
port. And when I write a simple server on Java the client also is
working. May be I must config any parameters?


     InetAddress Naddr = InetAddress.getByName(LogOnHost);
      try
      {
      Socket socket = new Socket(Naddr,Nport);
      ..........
      socket.close();
      }
      catch(IOException IOex)
      {
        System.out.println("IOex: " + IOex);
      }

Thank,

Rustam
Technical Details
Message-ID: <36EA3610.FFA4ECEB@nbkr.bishkek.su>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,326526ef9d64b768,start
X-Google-Attributes: gidf74b3,public
From: Rustam Budaichiev <rus@nbkr.bishkek.su>
Subject: Problems with sockets
Date: 1999/03/13
Message-ID: <36EA3610.FFA4ECEB@nbkr.bishkek.su>
X-Deja-AN: 454498110
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=koi8-r
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language