title: How to bind a socket to multiple interfaces
body: <p>After hours of searching on the internet, I still wasn't able to find an answer for my problem.</p>
  
  <p>My task is to create a server that accepts sockets from a variable number of interfaces (given in a config file as <code>eth0, eth1, etc.</code>).</p>
  
  <p>What is the easiest way to do this?
  Is there any way to bind one socket to multiple interfaces? I haven't found a way to do that yet.<br>
  Or, do I have to use <code>INADDR_ANY</code> and somehow find out the interface which the packet was sent from?</p>
  
  <p>Is there another way to handle this problem?</p>