0

I have a Windows server on which I have a server socket that listens on port 18451:

D:>netstat -a | findstr 18451
  TCP    0.0.0.0:18451          XW10LSCP0030:0         LISTENING
  TCP    [::]:18451             XW10LSCP0030:0         LISTENING

On the same server I have a client program that tries to connect to this server socket:

Socket socket = new Socket(inetSocketAddress.getAddress(), inetSocketAddress.getPort());

However I get a connection refused connection:

localhost/127.0.0.1:18451: Connection refused: connect

The windows firewall is not running. How can this be explained ?

frederikdebacker
  • 593
  • 5
  • 14

0 Answers0