How to check whether the particular port is in use : Java
When i was working on a WIX, i encountered some issue in installing the application (REST based webservice), my service is not started and later identified that the port number which i set in the application is already used by another application
public Socket(String host, int port) throws UnknownHostException, IOException
if the host is null it will set the host as loopback address

thank u man it works for me
Great.