From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-15-2019 09:29 AM
Hello,
I wan't to publish web application in internet .
I downloaded the project from here :
http://www.ni.com/white-paper/54116/en/
and i tried to follow the steps in the video:
https://www.youtube.com/watch?v=v81cUhdLeIc&t=6s
It works in my PC but when i try to run the web application from another pc in the same Network it Don't work .
So how to do that in my network , and from another network ? Help me please
Thank you ,
Solved! Go to Solution.
02-18-2019 04:11 PM - edited 02-18-2019 04:13 PM
Hi taoufiksmires,
Have you performed the following steps to host the application on the NI Web Server?
1. Set up the NI Web Server: Windows Start Menu >> Search "NI Web Server Configuration" >> Follow through the steps, making sure you allow for remote connections from other clients. See my sample configuration below; take note of the server URI as this will be important to access the application.
2. Copied the build output of the web application to the NI Web Server directory:
A. You can find the build output in NXG by double-clicking WebApp.gcomp >> 'Document' tab on the right >> 'Build' >> Look at the 'Output' directory
B. Copy the entire directory to the NI Web Server directory: C:\Program Files\National Instruments\Shared\Web Server\htdocs\
3. Navigate to the URL from the remote machine. An example of this, if you configured https, and have a folder 'myApplication' within the NI Web Server directory would be: https://<server URL>/myApplication/main.html
02-19-2019 01:35 AM
I would also temporarily disable any firewall on the machines while you do your first test.
I was being blocked when I first attempted a test of similar code over a corporate LAN.
0xDEAD
04-30-2020 06:46 AM - edited 04-30-2020 06:56 AM
Hi I tried to publish in the web with NXG. I have followed the steps from this forum.But I haven´t got the web services works for my web page. If I follow the same steps locally way , the web page and web services work perfectly. I don´t know where the problem is.
Firewall for the web server and clients computer are disable.
The first computer runs the web service and NI Web Server.
The second computer queries the web page.
Please Help me.
05-04-2020 06:05 AM
I have just solved the problem. I changed the port number for web service and web page is loading data from the web service.
01-30-2021 10:55 PM
I could see the web app in the browser with my IP, but I could not see it from the internet. How it works? would you please help me how step by step publish it on internet by using my internet IP?
02-01-2021 01:23 AM
Hi. You should find out your public ip. Check your public ip visiting this website https://www.whatismyip-address.com/?check
02-01-2021 06:02 AM
Thank you for your reply.
I've used that IP, but it is working from my laptop that I have the NI web server, but It doesn't work from another computer from the internet. Also, I set the port forwarding in my router to my laptop.
02-03-2021 01:49 AM
I think your Ni we server is not set up properly. You must include your pubic ip and establish a port for the ni web server. I recommend you use a port that is not 80.
02-03-2021 05:43 PM
Thank you. It's working with a port other than 80!