tags:

views:

8

answers:

0

Hello need some help!

I´m trying to implement a socket connection, and my client shows the folowing:

mySocketClient: IOException: java.net.SocketException: Connection reset
java.net.SocketInputStream.read(Unknown Source)
java.net.SocketInputStream.read(Unknown Source)
java.io.DataInputStream.readShort(Unknown Source)
mySocketClient.connect(mySocketClient.java:178)

being line 178 where the error occurs "input.readShort();"

i found out that calling the mySocketClient on the same machine where is the mySocketServer. the error doesn´t occur. could it be anything to do with the firewall in the server? or just bad programming?

thanks for you help