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 UtilitiesGetNodeAddressfunction 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
GetNodeAddressreturns a network number of 0, this means that there is no internet router available. However, your application or process should callGetBridgeAddressto determine if there are router-like services, such as Apple Remote Access (ARA), available to that node.![]()
GetNodeAddressfor the router's network number; the network number thatGetNodeAddressreturns 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 theGetBridgeAddressfunction. If there is not a router on the local network,GetBridgeAddressreturns a function result of 0.
- Note
- You can also use
GetZoneListto determine if there is a router on the local network. For information onGetZoneList, see the chapter "Zone Information Protocol (ZIP)" in this book.![]()