Just to be clear: I just started Python 2 weeks ago but I'm a C#, ASP, PHP, JavaScript developer.
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.
So, I need to get computers IP address and host name.
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).
I had this idea from: https://stackoverflow.com/a/15497083/1598891
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).
My Question: Is there a way to get all computers IP and Host Name on the Local network without passing by net view
on Windows because net view
could be a slow operation?
Also, is there a way to only get computers that are running my application? (so it would be faster)
Thanks in advance