14
6
Is there an easy way from the OS X (Lion) command line or Finder to determine the IP address of a Windows machine on the same subnet (in a home network)? Assume the machine itself is not easily accessible.
I know of the following ways:
- Refer to the router(dhcp server)'s web admin page.
- Use
arp -a
to get a list of recently accessed IPs and guess from there.
The machine does show up in Finder, so I know it's network computer name (which I'm guessing is a WINS name?), but not what workgroup it is. We are not on a domain.
I'm not entirely sure how OS X "maps" an SMB/WINS name, since doing something like pinging "mywindowsbox" fails, as does pinging "mywindowsbox.local".
If you can find a way to inferface with the DHCP, that should be able to give you a list of all active IPs – Alex Waters – 2011-09-02T05:30:17.013