cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Yossem
Level 2

How can i get the server ID

Hello

On a local machine, using ier = lc_hostid(job1,HOSTID_FLEXID9,buf); give the dongle ID.
When using a licence server, how can i read server HOSTID from my local machine ?
When my software start, i need to know dongle ID of licence server. How to do it ?

Thanks for help.
Labels (1)
0 Kudos
(1) Reply
Yossem
Level 2

Hello,

I reply to myself.
I found solution, if this can help someone, i give it.

Just have to read the CONFIG of feature to access server hostid.

/******************************************************************************/
static int LibFlexReadServerHostID(char* FeatName)
/******************************************************************************/
{
CONFIG *conf=0;

conf = lc_get_config(job1,FeatName);

if (conf != NULL)
{
strcpy(m_ServerHostID,conf->server->idptr->id.host);
return(1);
}
return(0);
}
0 Kudos