Is it possible to check if a computer is connected to a domain? I want to be sure that the computer is connected to my company´s network with python (means that he is inside the company, using company´s network), so It would allow some scripts to run.
Asked
Active
Viewed 203 times
1 Answers
1
You can check that a computer connected to a certain network running ping
command based on ICMP protocol.
In Python, you can achieve it with pythonping library.
But the computer executing this script should have access to the specified network.

Valerii Boldakov
- 1,751
- 9
- 19
-
1You can also just call the `ping` command using `os.system("ping ...")`. No external library required. – Niklas Mertsch Nov 15 '20 at 15:30