- Inside Macintosh: Networking /
- Chapter 2 - AppleTalk Utilities / About the AppleTalk Utilities
Getting the Address of Your Node or Your Local Router
You can use the AppleTalk Utilities GetNodeAddress function to get the node ID of the node that is running your application and the number of the network to which that node is connected.
- Note
- If
GetNodeAddress returns a network number of 0, this means that there is no internet router available. However, your application or process should call GetBridgeAddress to determine if there are router-like services, such as Apple Remote Access (ARA), available to that node.
To locate your local router, you can first call GetNodeAddress for the router's network number; the network number that GetNodeAddress returns for a node is also valid for the internet router on that local network. To get the node ID part of a local router's address, you can call the GetBridgeAddress function. If there is not a router on the local network, GetBridgeAddress returns a function result of 0.
- Note
- You can also use
GetZoneList to determine if there is a router on the local network. For information on GetZoneList, see the chapter "Zone Information Protocol (ZIP)" in this book.
© Apple Computer, Inc.
7 JUL 1996