mysql - How to know which devices are connected to my network (using C#)? -
what i'm trying insert data on mysql database (like mac address) when user connects wireless network. in order this, i've been doing tests iphone , "arp -a" cmd , noticed result table doesn't refresh until ping iphone's ip address. example, connect iphone wireless network , can see iphone ip instantly on result "arp -a", when disconnect network iphone ip still showing on result. can avoid this? have ping huge range of ip numbers if want many mobile devices?
any apreciated.
if trying insert sql table on connection , have dd-wrt/open-wrt router write simple script on router submit sql query on client connection or disconnect.
if not have dd-wrt/open-wrt capable router becomes more difficult. arp way of detecting connections not detect disconnects. run periodic ping against of known connected devices determine disconnects. either way, can't directly in c#.
Comments
Post a Comment