Here you can find the source of createBoundServerSocket(final SocketAddress socketAddress)
static ServerSocket createBoundServerSocket(final SocketAddress socketAddress) throws IOException
//package com.java2s; //License from project: LGPL import java.io.IOException; import java.net.ServerSocket; import java.net.SocketAddress; public class Main { static ServerSocket createBoundServerSocket(final SocketAddress socketAddress) throws IOException { final ServerSocket serverSocket = new ServerSocket(); serverSocket.bind(socketAddress); return serverSocket; }//ww w . j a v a2 s . co m }