title: Java sockets not connecting
body: <p>I'm creating a simple messaging app, and everything works when using the localhost and my internal IP address, but when I send a client to my brother for him to run, they never connect. I've port forwarded the correct port on my router, and forwarded it to my computer running the server. The IP I'm having his client try to connect to was gotten by typing "whats my ip" into Google, and using that.</p>
  
  <p>Here's the relevant code from the server.</p>
  
  <pre><code>ServerSocket start = new ServerSocket(50123);
  Socket live = start.accept();
  start.close();
  </code></pre>
  
  <p>And here's the code for the client, where ########## is the IP from the Google search.</p>
  
  <pre><code>Socket live = new Socket("##########", 50123);
  InputStream input = live.getInputStream();
  OutputStream output = live.getOutputStream();
  </code></pre>