LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use WAN IP with port number in TCP Open Connection ?

I have a code to write / read a WiFi device server that gets DIO / AI data through a serial port. See attachment.

 

The device driver has a static IP of 192.168.1.10 and port 30704 for data stream. I have a router which links my laptop and this device driver in a LAN and all is fine.

 

But now I want to access my device driver through the internet. For this I already have done a port forwarding in my router to direct incoming requests on 30704 port to my device driver.

 

The issue : I cannot reach my device driver when I enter the WAN side IP of my router like 52.23.45.131 and the Port as 30704  in the TCP Open connection.

 

Any suggestions ?

 

Thanks 

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 4
(5,803 Views)

Hello,

without looking at your vi:

Did you try to reach your device from an external Computer?

Because NAT Translation cant be done (by most routers) if you try to reach yourself from the inside.

 

I am correct that the device created a virtual Networkcard on your computer at which you can communicate locally, right?

Did you try to use another computer in your Network, to reach your computer and the attached device?

If it is not possible, try to enable Routing at your computer.

If it is possible, your router is not forwarding (or you answered at with "no" at the first question or both).

If you are using an external computer and the networkinternal connection from another PC is working and you are 100% sure the router is set up correctly, try to disable all local firewalls and test again. (if it works you need to setup a proper fwrule).

 

 

Regards

Rene

0 Kudos
Message 2 of 4
(5,798 Views)

- I tried ONLY from another external computer with a different ISP.

- Within my router's LAN subnet all PCs are able to access the device. My problem is I am unable to reach my device from the WAN side of the router !!

- There are no firewalls - my router as of now has left all ports open. Proof : My IP Camera is also on the same router and can be seen even on mobile phone.

 

Thanks

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 3 of 4
(5,795 Views)
Hello Raghunathan, ok, so another question: Can you set the Default Gateway on the device and is it set if so? Maybe the Device doesnt know how to answer to the query, so the package goes in, but not out. If you have an old hub, you can try to sniff the networkpackages and see if the request gets onto your network.
0 Kudos
Message 4 of 4
(5,771 Views)