GetlocalIp (OpenInsight 32-bit)
At 21 AUG 2012 03:55:53AM Gerry Van Niekerk wrote:
Version 931
We have a development version and a different client version
Same OI version, same netdrv
On server2008 when we run our dev copy we get the correct localip ie 192.168……
On the client copy same server same setups we get a weird ip address ie 40.0…….
If we run the same on a local pc then the localip in dev is a weird number
and on the client copy OI stops working when you call getlocalip
The dates on the compiled programs are the same.
What else can we look at or is there another program we can use to determine the ip address of the workstation as we have to open a different external program if we are not using the server (terminal service / Citrix)
Gerry van Niekerk
Csoft
At 21 AUG 2012 11:21AM Jared Bratu wrote:
The function GetLocalIP isn't listed in the OpenInsight help file. Is this a custom function or DLL export in your system?
The question has been asked in the past and there have been a couple forum postings with example code. One of the issues with getting the local ip address is the workstation/server can have a number of local addresses. This thread has two code snippets that you may be able to use. You can also use command "ipconfig /all" to check the results of your function call to the list of IP addresses.
If you're trying to get the IP address of a Citrix workstation then you'll have to use a different method because a workstation running OpenInsight in a citrix environment is actually executing the code on the server and would return the server's address.
Why not use @STATION instead of the IP address for identifying where the system is running?
At 21 AUG 2012 11:33AM andrew mcauley wrote:
From our conference presentation at Vegas last year :-
* Determine if we're running over RDP - if we are then set a flag * so that we kill animations
$insert winAPi_SystemMetric_Equates
isRDP = FALSE$
if ( winAPI_GetSystemMetrics( SM_REMOTESESSION$ ) ) then
isRDP = TRUE$end
call send_info("You are " : str("NOT ", Not( isRDP )) : "running a remote desktop")
World leaders in all things RevSoft
At 21 AUG 2012 05:01PM Gerry Van Niekerk wrote:
Thanks,
Getlocalip was provided by Revelation
There was a reason we didn't use @station at the time, but will recheck and also rdp option
Thanks…
Gerry