public static ServerSocket createServerSocket(InetAddress bind_addr, int start_port) {
public static ServerSocket createServerSocket(int start_port) {
    public static ServerSocket createServerSocket(InetAddress bind_addr, int start_port) {        ServerSocket ret=null;        while(true) {            try {                ret=new ServerSocket(start_port, 50, bind_addr);            }            catch(BindException bind_ex) {                start_port++;                continue;            }            catch(IOException io_ex) {                if(log.isErrorEnabled()) log.error("exception is " + io_ex);            }            break;        }        return ret;    }