connection refused exception in socket programming
<p>In simple socket programming in java , what ip should be given while making new socket and its on wan    </p>

<p>//Server side</p>

<pre><code>ServerSocket ss = new ServerSocket(8888);
System.out.println("\n\n\tWaiting for connection\n");
Socket c = ss.accept();
System.out.println("\n\n\tConnection established\n");

//Client side
Socket c=new Socket("192.16*****",8888);
System.out.println("\n\n\tSuccessfully connected to the server");

//in **** there is complete ip address of my computer .... i.e. IPV4 address (checked 

//from ipconfig command on cmd)
</code></pre>
