• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Getting IP address (From: Rajendra Rao <email@hidden>)

  • Prev by Date: RE: Problem with Modem Prefs
  • Next by Date: Daemon not loading
  • Previous by thread: Re: Getting IP address
  • Next by thread: Re: Distinguishing between ppp and ethernet
  • Index(es):
    • Date
    • Thread