title: General questions about a tcp server client connection via sockets in Java
body: <ol>
  <li><p>I have a server and a client in two different Networks. These are supposed to send each other messages. I know that the server needs to have port forwarding set up for his computer and his router. Does the client need to do that aswell?</p></li>
  <li><p>Is it correct to use a DataInputStream and a PrintStream on both client and server side to send messages?</p></li>
  <li><p>If I use this code on the server side:</p>
  
  <p>ServerSocket server1 = new ServerSocket(Port);</p>
  
  <p>server1.bind(new InetSocketAddress(ip, Port1));</p></li>
  </ol>
  
  <p>What do I need to enter for Port, ip and Port1?</p>