Getting java error in processing

Im trying to make two pc in the same network communicate with the network library of processing but i get the following error

on the client sketch:



java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at processing.net.Client.<init>(Unknown Source)
    at CLIENT.setup(CLIENT.java:31)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:619)

 

What does this mean?

 

Firewall blocking the connection

Firewall blocking the connection would be my first guess. Have you tried any other connections between those PCs?

Second guess is that your client is trying to connect to wrong port and/or host.

 

I"m going twith nuumios

I"m going twith nuumios first answer…connection refused usually is a fw issue…

 


I have disabled all the  firewalls ,port and ip are ok too , i just realised that java dont work as it supposed to be working and it has

a problem .I  will reinstall and tell you the results…