title: Python - Get computer's IP address and host name on network running same application
body: <p><strong>Just to be clear: I just started Python 2 weeks ago but I'm a C#, ASP, PHP, JavaScript developer.</strong></p>
  
  <p>I just started a new project with Python and PyQt and I want my project to be a server that will be able to communicate with other instance of this server on other computers.</p>
  
  <p>So, I need to get computers IP address and host name.</p>
  
  <p>First, I thought about using the MSDOS "net view" command but this was before trying this command at my job and seeing that this could take around ~15s (which I think is too slow).</p>
  
  <p>I had this idea from: <a href="https://stackoverflow.com/a/15497083/1598891">https://stackoverflow.com/a/15497083/1598891</a></p>
  
  <p>Also, the "net view" command can return computers that are no longer on the network and cause exception when trying to get their IP addresses by host name (which also slows down the process each time a computer cannot be accessed).</p>
  
  <p><strong>My Question: Is there a way to get all computers IP and Host Name on the Local network without passing by <code>net view</code> on Windows because <code>net view</code> could be a slow operation?</strong></p>
  
  <p>Also, <strong>is there a way to only get computers that are running my application?</strong> (so it would be faster)</p>
  
  <p>Thanks in advance</p>