LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

G web server

Hello,
I have an application made in Labview7.1, that should be remotely controled. Also it must be protected with user name and passwords. For that I used G web server from Internet toolkit ver.6.0. I followed the instructions for password protecting the web pages, so the G web server is sharing the same port as the Labview web server, and when I run the VI from Labview enviroment it works fine. But when I build the application, the G web server is returning the error 60, the port is already used by anaother application, that application beeing the Labview web server from the app. How can I get around this?
0 Kudos
Message 1 of 8
(4,100 Views)
Exactly one application can listen on a given port. You must move one of your web servers to a different port.

Message Edited by altenbach on 11-13-2005 10:49 AM

0 Kudos
Message 2 of 8
(4,093 Views)
hi,
the G web server is not a different app, is included in the main application. How can anyone combine the remote control provided by the labview web server, with the security provided by the G web server in a executable, as you can do in the Labview enviroment?
 
0 Kudos
Message 3 of 8
(4,085 Views)
Can't you use the G Web Server to both give you remote control and security? I've linked a thorough discussion of using the HTTP Web Server with an executable, which also has links to some additional information on this topic. The discussion even specifically mentions not being able to use both servers on the same port, so you should really switch entirely to the HTTP web server to get both remote control and security. If you can't get things working, feel free post a small example that illustrates your dilemma.
 
Kind Regards,

Message Edited by AESulzer on 11-14-2005 02:54 PM

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 8
(4,062 Views)
Hello,
the problem is that the G web server does not support Remote Panels, so to give access to remote panels for the application I have to enable Labview web server. But I do not want that anyone can access the remote panel so we need to give security for the web page. I cannot use the CGI requests because the app is showing live aquisitions from a number of fielpoint banks.
0 Kudos
Message 5 of 8
(4,052 Views)
Are you sharing the port? Please make sure that you follow the instructions outlined in the online Knowledgebase linked here, and let us know how it goes!
 
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 6 of 8
(4,034 Views)
Hi,
yes,I've done exactly as in that knowledgebase, and in Labview enviroment it works fine. But when I build the application, I,ve got the error from G web server, that the port is already in use by labview web server
0 Kudos
Message 7 of 8
(4,014 Views)

Try adding the line "InternetToolkitInstalled=True" to your application's .ini file. That should take care of the port access conflict. After much experimentation recreating a setup like yours here, this was the token that eliminated the error 60 for me. The token essentially corresponds to the sharing option that you check in the Options menu.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 8 of 8
(3,972 Views)