ServerSocket sock;
Socket clientSock;
try {
sock = new ServerSocket(PORT, BACKLOG,
InetAddress.getByName(INSIDE_HOST));
while ((clientSock = sock.accept()) != null) {
// Process it.
process(clientSock);
}
} catch (IOException e) {
System.err.println(e);
}