I think this codes will be help for you.
Err NameToAddr(UInt16 refNumP,char* destName,NetIPAddr *destIPNum)
{
Err err;
// UInt16 netRefNum; //Library Version
UInt32 timeout=1000;
NetHostInfoBufType m_rInfoBuf;
NetLibGetHostByName(refNumP,destName,&m_rInfoBuf,timeout,&err);
if (err)
return err;
*destIPNum = m_rInfoBuf.address[0];return 0; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
