Re: Getting IP address
Re: Getting IP address
- Subject: Re: Getting IP address
- From: Quinn <email@hidden>
- Date: Thu, 13 Jun 2002 18:29:31 +0100
At 17:10 +0530 5/6/02, Rajendra Rao wrote:
To be more general, all I want to know is whether it is possible to get
IP address having just the Appletalk information using AppleTalk or
OpenTransport API's.
If the card is Ethernet-like, ie it has a hardware address, and you
know that it's IP address is on your subnet you can theoretically do
this by:
1. mapping the AT address to a hardware address using AARP
2. mapping the hardware address to an IP address by ARPing for each IP
address on your subnet and seeing who responds
However, actually implementing this using Mac APIs is going to be tricky.
If your situation doesn't match the above criteria then I can't think
of any solution.
Can you run code on the card? If so, you could write a trivia
program that listens for AT requests and responds with the IP address.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.