linux - Java server running, but can only access via local host -
not quite sure how set this. have java server running on background on port 12000. running on linux machine, can access , utilize via localhost fine, when seek access computer, cannot found. have disable uwf firewall , still can't access it. else need do?
serversocket thesocket = new serversocket(portnum); socket incoming = null; // new connection. boolean incomingok = true; // connection established? while (!closerequested){ // next client incoming = thesocket.accept( ); . . }
this how open port through java. said before, server works fine on localhost. problem can't connect external machine.
java linux sockets ubuntu port
No comments:
Post a Comment