using net module for ip checking