Ports Used by Web Services Running on Real-Time Targets

Updated Sep 14, 2023

Reported In

Software

  • LabVIEW Real-Time Module
  • Web UI Builder

Issue Details

I am building a Web Service for my Real-Time application using LabVIEW. I will deploy this web service to my target (CompactRIO, sbRIO, myRIO, etc) and will connect to it using the browser and its IP according to: Components of a Web Service (Real-Time, Windows)

 

When I publish the web server from the project explorer, using Application Web Server»Publish, I can see my website in the port 8080, but when I deploy it as part of a Real-Time application (RT EXE) then I need to use port 8002. Why is this?

Solution

When using Web Services, the ports will behave by default in the following way:
 

  • 8001: Debugging mode. This port is used to debug your web service. Learn more about this procedure in the document Testing and Debugging a Web Service (Real-Time, Windows)
  • 8080: Application web server. The port used by the application web server when we publish web services.
  • 8002: Deployment mode. This port is set in the Web Services Page (Real-Time Application Properties Dialog Box). This port will be used instead of the Application Web Server (8080) port when publishing web services as RT EXE applications.

 

Note: These ports and instructions apply for LabVIEW 2013 and higher.

Additional Information

Find more information about the URL Mappings for the LabVIEW Web Services here: Understanding URL Mappings and Query Strings in Web Services (Real-Time, Windows).

 

Understand how to use the LabVIEW Web Services with the following LabVIEW Help document: Tutorial: Creating and Accessing a LabVIEW Web Service (Real-Time, Windows).