LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2013 Web Service only works in my LAN

Hi everyone. I've been following the instructions of this tutorial to create and use a web service with LabView 2013 Student Version: http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/build_web_service/#Creating_VIs_WS So far, I've been able to use the webservice I created from my computer's web browser, from the web browser of an iPad and even from the data dashboard app of the iPad; however, I asked some friends to try the link  http://192.168.1.72:8080/WebService1/add?b=89&a=89  from their computers, but they're not able to access. They use the same web browser I use and it tells them that the webpage can't be found. Even so, it still works within my LAN. Have you any ideas of why does this happen? Do you have any possible solutions you could tell me about please? Thank you! If you want to have an idea of how my code looks, just look at the link of the tutorial, I followed the instructions exactly.

0 Kudos
Message 1 of 4
(2,498 Views)

Hi,

 

192.168.1.72 looks like a private IP address that is only visible on your LAN. You need to give your friends your public IP address. You can find your public IP address at http://www.whatismyip.com/

 

You probably also need to configure your router to do port forwarding, to send traffic from port 8080 to your web server. See http://www.wikihow.com/Open-Your-Port-80-Behind-a-Firewall

Certified LabVIEW Developer
0 Kudos
Message 2 of 4
(2,488 Views)

One additional thing is that the "real" IP address (that you get from whatismyip) is probably dynamic -- meaning it can and will change from time to time. There are a number of companies that offer free dynamic DNS service that gives you a URL and transparently manages the changing IP address. There are obviously some restrictions -- like you end up with a TLD from someplace like Lower Slobovia -- but it can work.

These services can also handle your port forwarding, which is needed because many LAN administrators block the normal ports for HTTP specifically to keep you from doing exactly what you are trying to do.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
(2,479 Views)

To make these things easier in the future, please support this idea. Thanks.

0 Kudos
Message 4 of 4
(2,452 Views)