Serwer terminali Winflector - alternatywa dla aplikacji Zdalny Pulpit, Citrix XenApp

Forum > Product technical support > Get Server & Client Machine Names

Autor: Matty
Data: 2018-06-25 06:28:54

I am trialling Winflector v3.9.6.1. The .NET application that we wish to publish queries the Server and Client machine names. Other remote application server applications correctly return different names for these 2 queries. When running the application using Winflector from a client machine, the returned values for both the Server and Client machines is the name of the Server machine.

Is there something in the Winflector configuration that will cause this behaviour to change so that the names of the Server and Client machines can be identified by the application?

Autor: Mirek (staff)
Data: 2018-06-25 08:53:53

When using Winflector, the application is running on the server, so it see the server machine as the client. To get the names properly, we have to cheat the application. Could you tell me which way the application reads both client and server names?

If you are a developer of this application, you can get the right name by using Winflector API. You can also set some environment variables on the server to the values got from the client machine.

Autor: Matty
Data: 2018-06-25 11:28:05

Hi Mirek,

Thank you for the quick reply.

Yes I am the developer of the application. I need to get the client machine's name as the application's behaviour needs to be modified depending on which workstation has launched the application.

Using C#, I am getting the server machine's name with:

string sServerName = Environment.MachineName;

and the client machine's name with:

string sClientName = Environment.GetEnvironmentVariable("CLIENTNAME");

These return the correct results on remote application server applications that utilise Windows Terminal Services, Citrix products or Remote Desktop Protocol which I understand are not utilised by Winflector.

With regard to the API, I have looked at this page:

http://www.winflector.com/english/product/product-features/app-prog-interfaces.html

I have tried to add a reference to Visual Studio for "gtrmapi.dll" but it failed with the attached error.

Is the API the best method of getting the client machine's name and does this also support getting other information about the client such as its MAC address?

I'm impressed with the simplicity of the design of Winflector and with the speed of application delivery.

Do I require a separate licence for each server machine onto which I deploy Winflector?

How can Winflector licences be activated on machines without internet access or on machines with highly restricted firewalls?

Autor: Mirek (staff)
Data: 2018-06-26 10:22:21

Hi Matty,

If the CLIENTNAME environment variable exists on your client machine, you can send it automatically to the server. Go to Winflector configuration, and edit your application definition. Then just type CLIENTNAME in 'Client environment variables' text box. Click 'Update' button and the application will see CLIENTNAME variable as seen on the client machine.

If it is not possible, you can use one of predefined TApi functions or use RPC to create your own functions as described in wfprog_en.pdf manual.

You need a separate license for each server machine unless you use a farm. In such a case you need one licensed (activated) server and free 2-users servers as farm members.

To activate winflector in a restricted environment, you can copy and run wmtool.exe file on any computer which has access to the Internet and to the Winflector server machine, create remote connection from wmtool to the Winflector server and activate it on-line. If it is not possible, you can send us the hardware ID and the activation key via e-mail. We will activate your server and send the activation file back to you.

Autor: Matty
Data: 2018-06-26 14:22:34

Thanks Mirek,

The CLIENTNAME environment variable appears to only exist when using terminal services. With Winflector, I was able to access the client machine's name by adding the environment variable COMPUTERNAME in the "Client environment variables" text box for the application as you suggested. Then when the application queries the COMPUTERNAME environment variable, it returns the client machine's name.

Autor: Matty
Data: 2018-06-27 03:53:10

I'd like to purchase a licence to trial the application without any limitations. This is to install onto a virtual Windows server which may be deleted and reinstalled from time to time. Will I be able to deactivate and reactivate licences so that they can be moved from one (virtual) server machine to another?

Autor: Mirek (staff)
Data: 2018-06-27 08:37:26

You can reactivate license 3 times by default. After that (or just before the last possible activation) you should send an e-mail to us and then we can set a new limit. It is not a problem unless someone reactivates his license very often (for example every month).

To try your application without limits, just send an e-mail to orders@otc.pl and ask about evaluation license for 30 days for as many users as you need. Such a license has no limitations (except time).

1


Zaloguj się aby móc pisać na forum.