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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access web service from remote computer using a web browser client (IE)

Hello,

 

I follow the tutorial for creating and accessing a LabVIEW web service: 

 

http://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/build_web_service/

 

Under the section Accessing the Web Service with a Client

 

It says:

If the client is located on a different system than where the Web service is published, you must replace 127.0.0.1 with the actual IP address of the system where the service is published.

 

I can't make this work. I can only access it locally on my own computer where the web service is published. I get my IP by whatsmyip.com and enter it in the client/ web browser (IE) on the other computer, but no luck. I have also tried to switch off firewall on both computers, but still doesn't work.

 

Any tips out there?

 

br,

paalbrok

0 Kudos
Message 1 of 5
(3,420 Views)

Can the client ping the server? That's usually the first thing to get working...

0 Kudos
Message 2 of 5
(3,401 Views)

@paalbrok wrote:

Hello,

 

I follow the tutorial for creating and accessing a LabVIEW web service: 

 

http://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/build_web_service/

 

Under the section Accessing the Web Service with a Client

 

It says:

If the client is located on a different system than where the Web service is published, you must replace 127.0.0.1 with the actual IP address of the system where the service is published.

 

I can't make this work. I can only access it locally on my own computer where the web service is published. I get my IP by whatsmyip.com and enter it in the client/ web browser (IE) on the other computer, but no luck. I have also tried to switch off firewall on both computers, but still doesn't work.

 

Any tips out there?

 

br,

paalbrok


I would think that going outside your network to get your IP address will return the IP of your gateway?  Why not do an ipconfig instead?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(3,384 Views)

Your description is not sufficient to troubleshoot. Here are some pointers:

 

Both the client and server have an IP address.

 

They can be on the same network or they can be on a different network.

 

Typical home networks are private behind NAT.

 

If both computers are on the same private network, they communicate via the private local addresses.

 

If the client is local and the server on the public internet, everything should work.

 

If the server is on a different private network, it needs to be contacted via the public IP of it's NAT gateway +AND+ NAT needs to be configured to forward the relevant ports to the private IP of the server.

 

If both are on the he same private network an you are using the result of whatismyip, your router needs the right ports forwarded and needs to have loopback implemented (some don't).

 

As you can see, a lot depends on the network, how things are configured, and where the two parties are located.

0 Kudos
Message 4 of 5
(3,371 Views)

 Hello paalbrok!

 

Are your two computers directly connected (inside your local network), or do you want to connect through the internet?

 

  1. Same network: You got the wrong IP. You need the IP your serving computer uses in the local network. On Windows, you can find it either through the control panel, or via the command prompt, typing ipconfig.
    2019-01-17_08-55-22.png

     

    cmd_2019-01-17_08-56-57.png

     

  2.  

    Through the internet: This is gonna be tricky. The IP you got from whatsmyip.com is most likely the public IP of your internet router, not the IP of your computer. That's because of the feature NAT mentioned before. In easy words, this public IP is your house number. The private IP is the room number. Only the receptionist at your house's door knows both. External persons know only the house number, internals know only your room number. If someone from outside wants to reach you, the receptionist has to forward him/her to to you. In other words: This needs configuring in your router. Better ask a local expert, as depending on your network's configuration you can break a lot.

Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 5 of 5
(3,350 Views)