LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choosing a port for a deployed web service

I am developing a web service based application that implements a RESTful interface to serve plot data to a web client.

I would like to serve the javascript based HTML5 front end from the same web server.

 

The tricky part is that I would like to server the html front end on port 80 but the web service back end on a different port, e.g. 8123. It seems to be industry best practice to not run a web service on port 80.

 

Any idea how I could to that and run both on the NI Application web server?

0 Kudos
Message 1 of 4
(3,122 Views)

hfettig, 

The following KnowledgeBase article describes how to change the port from the Web Server configuration. 

Default Web Service Port Change: http://digital.ni.com/public.nsf/allkb/BB927A3060E03AEC862579570064C14A

Here is also an indepth document that addresses a lot of web service considerations that you may find useful: 

LabVIEW Web Services FAQ: http://www.ni.com/white-paper/7747/en/

0 Kudos
Message 2 of 4
(3,079 Views)

Thanks for the reply. I know that I can change the port for the application web server. However, I would like to serve my HTML/Javascript application on that default port and talk to my web service on a different port.

0 Kudos
Message 3 of 4
(3,068 Views)

The html application client front end and the web service back end are going to be on the same port for the client and server to talk to each other correctly. LabVIEW does not provide an option to differentiate ports for those parts of the web service. I'm not sure however what you mean by "best industry practice" to not use the default port. Could you give me more information on that-is there a particular reason you don't want them on the same port? 

0 Kudos
Message 4 of 4
(3,057 Views)