Novell is now a part of Micro Focus

Retrieving the Transport Address for IPX and IP

Articles and Tips: tip

Wolfgang Schreiber
Novell, Inc.

01 Feb 2002


To retrieve the protocol-specific transport address, you can send a request to the transport layer. Since the MAC address usually matches the transport address on IPX, you can use the same sequence as the one to identify the MAC address:

NWSipxOpenSocket() NWSipxGetInternetAddress()

To retrieve the transport address from IP, you can call the sequence

WSAStartup() GetHostName() GetHostByName() WSACleanup()

In an transport-independent approach, you could request your transport address from the server/NDS with the sequence:

NWCCGetConnInfo(connHandle, NWCC_INFO_CONN_NUMBER, .., connNum) NWGetInetAddr(connHandle, connNum, ..)

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates