Important: The information in this document is obsolete and should not be used for new development.
Getting the Address of Your Node or Your Local Router
You can use the AppleTalk UtilitiesGetNodeAddress
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.
To locate your local router, you can first call
- Note
- If
GetNodeAddress
returns a network number of 0, this means that there is no internet router available. However, your application or process should callGetBridgeAddress
to determine if there are router-like services, such as Apple Remote Access (ARA), available to that node.GetNodeAddress
for the router's network number; the network number thatGetNodeAddress
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 theGetBridgeAddress
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 onGetZoneList
, see the chapter "Zone Information Protocol (ZIP)" in this book.