01-10-2016 04:50 PM
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.
01-10-2016 06:05 PM
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?
01-10-2016 06:51 PM
01-11-2016 04:30 AM
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.
01-12-2016 11:14 AM
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
01-12-2016 11:39 AM
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?
01-12-2016 12:49 PM
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.