LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug EXE over internet with port forwarding

Hi,

 

I didn't find info on how to debug an application that is running on a LAN from an internet access? (distance)

 

I tried at my house using my internet IP forward to my LAN ip machine port 3580 and it says bad IP when I try to debug the application. Everything work if I use the local IP.

 

Any info?

Thank you.

 

I basically try to debug an application running (executable) in a plant from my house using the development machine. I though forwarding to the LAN IP port 3580 would work but it doesn't look it does.

 

0 Kudos
Message 1 of 7
(3,389 Views)

Certain routers don't implement a loopback proxy, so connecting to a device on the same LAN via the public IP address of the router might not work.

 

Have you tried from a computer that is physically located on the public side?

Does your windows firewall allow connections fom non-local IPs?

Does the debugger session (both sides) allow access form non-local IPs?

Does your router have any additional firewall rules?

 

0 Kudos
Message 2 of 7
(3,372 Views)
Access with Remote Desktop is working on that same computer with port 3389. (Forwarded on the router). I'll check a little bit more your suggestions and let you know. Thanks.
0 Kudos
Message 3 of 7
(3,358 Views)

There's a guide about it here: http://digital.ni.com/public.nsf/allkb/8DA679805915DE40862572D5007B2F70

 

It seems that it is just port 3580, don't forget that you also need to enable it through any firewall (e.g windows firewall) on the PC running the executable.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 7
(3,322 Views)

I've read this KB.

All firewall are disabled and port 3580 is allowed to NI Service Locator

 

It is working if I try to debug the application from a local computer.

What is not working by an external computer. As I mentionned I forward a public ip (ex. 5) to my local computer port 3580.

 

example 

 

Internet IP : 1.2.3.4

Local computer : 192.168.0.105

other local computer: 192.168.0.104

 

on router I forward:

1.2.3.4 port 5 to

192.168.0.105 port 3580

 

From local computer : In the debug mode I entered: 1.2.3.4:5 to access local computer. not working

From local computer : In the debug mode I entered: 192.168.0.105 to access local computer. working

0 Kudos
Message 5 of 7
(3,282 Views)

Why don't you use the same external port on the router. i.e. foward external IP:3580 to 192.168.0.104:3580? How would the debugger know to use port 5 if you are contacting 1.2.3.4?

What is your router model? Are you absolutely sure it supports loopback?

0 Kudos
Message 6 of 7
(3,272 Views)

I added port5 (:5) to 1.2.3.4. --> 1.2.3.4:5

 

I will try using 3580 insteand of 5 but If I need to be forward to a second local computer to debug, i don't know how I will do that....

 

I have to check about the DIR-655, some firmeware of it allow loopback, some not. I'll check that first.

0 Kudos
Message 7 of 7
(3,261 Views)