title: Simple TCP communication with a computer behind a router
body: <p>I'm writing a C# remote control for my media player. It runs on my Android phone.</p>
  
  <p>I have a client app listening for TCP connections on my computer which, one a connection has been established, processes commands (Volume up, volume down, ...). I've tested that part using <code>telnet 127.0.0.1</code> on my computer, and it works great.</p>
  
  <p>Things are trickier when it comes to connecting from my phone, since it's not on the same network (I don't have Wi-Fi, only wired connections), so I'm not sure how to proceed. Basically I want to connect to a computer that's behind a router.</p>
  
  <p>Should I rather host the TCP server on my phone, and have the PC connect to it? Take IRC as an example: although I'm behind a router, I can connect to servers outside, without port forwarding.
  Or if hosting the server on my computer is fine, how do I connect to it?</p>
  
  <p>I don't understand everything to this yet, so feel free to correct me if I got something wrong.</p>