title: Establishing ServerSocket connection
body: <p>I used this code in my application-</p>
  
  <pre><code> public class BorderCastList extends Activity {
      private VideoView video;
      private ServerSocket server;
      private MediaController media;
  
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      //  Settings window for translucent state
      //   this.getWindow().setFormat(PixelFormat.TRANSLUCENT);
      this.setContentView(R.layout.video);
                     new Thread(new Runnable() {
  
      @Override
      public void run() {
      try {
      Log.i("test", "before info ServerSocket");
      server = new ServerSocket(8050)
      Log.i("test", "after info ServerSocket");
      Log.i("ip:" + server.getLocalSocketAddress() + "----port: "
      + server.getLocalPort(), "");
      Log.i("service ip: " + server.getInetAddress(), "");
      Log.i("Server build success************", "");
      //   Socket socket = server.accept();
  
      } catch (Exception e) {
      Log.i("aaa", "bbbb");
      e.printStackTrace();
      }
      }
      }).start();
      )
  </code></pre>
  
  <p>Why am I getting the log output <code>Log.i("test", "before info ServerSocket");</code> but not  <code>Log.i("test", "after info ServerSocket");</code></p>
  
  <pre><code> Log.i("ip:" + server.getLocalSocketAddress() + "----port: "+ server.getLocalPort(), "");
   Log.i("server ip: " + server.getInetAddress(), "");
   Log.i("Server build success************", "");
  </code></pre>
  
  <p>Why does it not execute after <code>new ServerSocket(8050)</code>?</p>