title: TcpListener - how to start server with global ip address
body: <p>I would start <code>TcpListener</code> server with my global IP address.
  I have open ports and using DMZ and my port 8074 is available and i should be able to start this server.</p>
  
  <p>My code looks like :</p>
  
  <pre><code>IPAddress ip = IPAddress.Parse("XX.XXX.XX.XXX.XX");
  TcpListener server = new TcpListener(ip, Convert.ToInt32(8888));
  TcpClient client = default(TcpClient);
  try
  {
      server.Start();
      Console.WriteLine("Server started...");
  }
  catch (Exception ex)
  {
      Console.WriteLine(ex.ToString());
  };
  </code></pre>
  
  <p>And all the time i have Error looks like:</p>
  
  <blockquote>
    <p>Activated Event   Time    Duration    Thread Exception: An exception was
    thrown: "System.Net.Sockets.SocketException" in System.dll ("The
    requested address is different in this context"). An exception was
    thrown: "System.Net.Sockets.SocketException" in System.dll ("The
    requested address is different in this context") 5.52s [5780] Worker
    thread</p>
  </blockquote>
  
  <p>You can check if you want this port is accessible on my IP address but can't start server on this.</p>