java - ObjectInputStream$BlockDataInputStream.peekByte when using program on internet -
i created application tcp, works nice when used on local network 127.0.0.1 server refused works when client try connect him network. i don't know error means , how resolve , can't anderstand application works on lan. public class reception { inputstream inobjet = null; bufferedreader instring = null; objectinputstream recvec2i = null; public reception(socket socket) { try { this.inobjet = socket.getinputstream(); this.instring = new bufferedreader(new inputstreamreader(socket.getinputstream())); this.recvec2i = new objectinputstream(inobjet); } catch (ioexception ex) { logger.getlogger(reception.class.getname()).log(level.severe, null, ex); } } public vecteur2i recevoir() { vecteur2i = new vecteur2i(); try { = (vecteur2i) recvec2i.readobject(); } catch (ioexception | classnotfoundexception ex) { logger.getlogger(reception.class.getname()).log(level.severe, null, ex); = new vecteur2i(10...