java networking: how to get server's IP :
<p>i want to make a chat messenger with java which is going to work on a LAN local network.
in client i have:</p>

<pre><code>Socket socket=new Socket(serverIP, port);
</code></pre>

<p>how to understand what is serverIP, the ip address of the computer on which the serverSocket is waiting for an incoming connection </p>

<p>this is a really small network: 1 server and 1 client, a cross cable network</p>
