Here you can find the source of getServerSocket(int i_Port)
public final static ServerSocket getServerSocket(int i_Port)
//package com.java2s; //License from project: Open Source License import java.net.ServerSocket; public class Main { public final static ServerSocket getServerSocket(int i_Port) { ServerSocket v_Ret = null; try {//from w w w .jav a2 s .c o m v_Ret = new ServerSocket(i_Port); } catch (Exception exce) { v_Ret = null; } return v_Ret; } }