Simple. To create the client IP and port you should pass the parameters like below in main program.
just try like this
java Client localhost 1112 //To run
(ip: localhost
port: 1112)
// Code for main
public static void main(String[] args)
{
try
{
ipAdd=args[0];
portNo=Integer.parseInt(args[1]);
Client s=new Client();
}
catch (Exception e)
{
System.out.println(e);
}
}