0

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.

Phil
  • 77
  • 3

1 Answers1

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