07-29-2014 11:30 PM - edited 07-29-2014 11:32 PM
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.
07-29-2014 11:38 PM - edited 07-29-2014 11:46 PM
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
07-30-2014 12:18 AM - edited 07-30-2014 12:20 AM
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.
07-30-2014 01:38 AM