Raghu
Raghu

Reputation: 47

getting IP address

how to get the IP Address of all the systems connected to a network regardless of operating system(windows,Linux,Unix) using C#.net

Upvotes: 0

Views: 214

Answers (3)

Thorsten79
Thorsten79

Reputation: 10128

Simple question, but you stumbled on a hard problem.

There is no definitive answer because network stacks vary. Internal firewalls may eat your packets. Hosts may not send ping replies. Routers may throw away their ARP cache (or may have been reset recently). Et cetera.

Please read the Nmap network scanning book.

Upvotes: 1

mullzk
mullzk

Reputation:

Periodically query your Router via SNMP for its ARP-Cache => You also get these systems whose admins think a ping is a security breach.

If you have more than one Router: Ask your Router for its routing-table and follow next-hops...

Upvotes: 0

Berzemus
Berzemus

Reputation: 3668

Loop on all possible ip's within desired range and ping them... Should be possible in every computing language.

Upvotes: 0

Related Questions