Get TF_E_INET error on requesting leaseSolved

Hi Wyatt,

I downloaded the latest versions of TurboFloat Server and Library - 4.1.9.0

I successfully installed and activated TurboFloat Server on my Windows 10 machine.I then proceeded to run my application requesting a lease from the server. The application also resides in the same machine.

I haven't changed the default settings of the config file of the server.Also the TF_SaveServer method sends these in the param - "127.0.0.1" and 13 for ip and port respectively.I get S_OK on executing this method.

But I get TF_E_INET on executing TF_RequestLease method.

Am I missing something?Do I need to make any changes to make this work?

Here is the code snippet:hr = TF_SaveServer(tfHandle, _T("127.0.0.1"), 13, TF_SYSTEM);wchar_t arr[MAX_PATH] = { 0 };unsigned short prt;

// call TF_GetServer to confirm if the server details have been saved.hr = TF_GetServer(tfHandle, arr, MAX_PATH, &prt); // get correct data back

hr = TF_RequestLease(tfHandle); // return code TF_E_INET

Please guide.

1. Is the TFS running? My guess is not.

2. Set the log level to notification.

3. Run the TFS from commandline using the -x option : https://wyday.com/limelm/help/turbofloat-server-commandline/

4. Disable all firewalls / anti-virus except Microsoft's Windows Firewall and Microsoft's AV (Defender). All 3rd party AVs are at best, junk. At worst, malicious programs doing the work for hostile foreign governments.

5. If you did step 1-4, and the TFS display in the commandline doesn't show any connection then try PING ing the local server. You might be inadvertently running on a different port, or binding to a different address.

Hi Wyatt,

I followed the steps described by you.. and I was able to request lease successfully using the -x command.

I install and activate TurboFloat Server through my InnoSetup installer by executing these commands in a Windows Batch File - 1) TurboFloatServer.exe -i2) TurboFloatServer.exe -a="<LICENSE_KEY>"

The log shows that activation is successful and so does the Product Key details in the LimeLM webpage.Why can't I request lease through the above steps?

The description of TFS install says that it starts the server immediately.

>> "I install and activate TurboFloat Server through my InnoSetup installer by executing these commands in a Windows Batch File - [install then activate]"

That's backwards. Activate first, then install. If you view the log file (make sure you're logging errors to a writable file) you'll see it will tell you that you can't run the TFS before it's activated.

>> "The description of TFS install says that it starts the server immediately."

... once activated. It doesn't run when it's not activated (because how would it know how many leases to assign, etc.).

That's it!!

Worked for both Win and Mac.

Awesome!Thanks!

Wyatt,

I had another question... my application supports both TurboActivate and TurboFloat.

Can a user install both types of licenses on his machine?