title: Socketconnection via wifi
body: <p>I want to connect my mobile phone via wifi with my computer. 
  I tested it with the tool "SocketTest" and the Android app "TCP Client". There it works great.
  But if I try the following Code (as a test), the "TCP Client"-App can't connect.</p>
  
  <pre><code>int main() {
      boost::asio::io_context io_context;
      boost::asio::ip::tcp::acceptor acceptor(io_context, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 25100));
      boost::asio::ip::tcp::socket sock(io_context);
      acceptor.accept(sock);
  
      std::cout &lt;&lt; "New Connection!" &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>or </p>
  
  <pre><code>int main() {
      boost::asio::io_context io_context;
      boost::asio::ip::tcp::acceptor acceptor(io_context, boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string("192.168.178.35"), 25100));
      boost::asio::ip::tcp::socket sock(io_context);
      acceptor.accept(sock);
  
      std::cout &lt;&lt; "New Connection!" &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>I can connect to the socket from my to pc to my pc. So the socket is open. But I can't connect from smartphone.</p>