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.
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.
10-20-2014 10:27 AM
Hi Everyone,
I have the same exact problem. On local network, using 192.168.x.xxx it works fine, but when I open ports, configure firewall etc, it does not work at all.
Right now, the device is configured as server with port 23149, which IP 192.168.0.168 is DMZ, and my computer is the client, running the TCP communicator example (TCP client), but using public IP 5.154.114.180 and port 23149.
It should work, but connection its not etablished. Can anybody help ??
10-20-2014 11:39 AM
Right. So your router is allowing local private network 192.168.x.x addresses and is isolated with no routing from external addresses such as your 5.154.114.180. Since you have not shown any routing/firewalls etc configuration it is hard to help.
You say all is set up correctly but it doesn't work. It seems that if it isn't working then it is not setup correctly.
You need to have your router at LEAST do port forwarding as far as I can tell from the non-description of your setup.
10-20-2014 11:43 AM
Thanks for your reply,
Sure, something Its not well done for some reason. What info can be showed to provide further help?
Thks.
Sebastian.
10-20-2014 11:53 AM
@sth wrote:
You need to have your router at LEAST do port forwarding as far as I can tell from the non-description of your setup.
Defining a DMZ is port forwarding. it means that all incoming connections go to the DMZ server.
Is the client computer also on the local network? If so, you might not be able to reach the target because not all NAT routers implement a loopback proxy to allow that. You should try from a computer that is physically on the outside.
10-20-2014 12:02 PM
Thanks!!! Very good advise.
A question, the TCP client requires port forwarding !? Or just the server?
I will try using two different networks. Thanks again!
10-20-2014 12:13 PM
castek89 wrote:A question, the TCP client requires port forwarding !? Or just the server?
Port forwarding is done on the router. It has nothing to do with client or server configuration.
The server most likely has additional security settings that could block communications:
10-20-2014 04:52 PM
There is a difference between DMZ/NAT/Port forwarding. It doesn't really matter for this discussion. NAT is just a dynamic management of the port forwarding based on an outgoing connection.
If you need some address outside your current local network to access the server then you need to set up a static port forwarding rule in your router. This is true for connections from outside trying to start and establish a link inside. You need to forward all incoming connections on port 23149 to go to your local server 192.168.0.168 on the same port.
You say that the server is DMZ. DMZ is usually referred to as within the router not the server. THere MUST be a router between the internet and your server on the private net. You will have to contact your server as the public IP of that private subnet the server is on.
As Christian says, it is significant if you can contact the server on the same private net.
10-21-2014 02:56 AM
Hi, thank you all,
Well, I have a router, which connect my local network to the internet. What I was trying to do is using public IP with computers in the same local network. I noticed that they must be different networks as routers cannot do loopback normally.
Now, I´m trying to set my PC with labview as server, and configure the router as DMZ for the IP of my pc (the server), so all traffic goes to it. Then, I will bring my laptop home, which will be labview client.
I dont know If I have to trigger ports of the router even if its configured as DMZ for my PC.
Thanks again !!
10-21-2014 06:58 AM
You need to be a lot more specific as to what you are trying to connect to what. I can make some guesses but guessing wrong would just confuse things. "using public IP" is not a clear statement of what and where you are trying to connect from and to and over what port.
If you have a DMZ you will have to manually set up port forwarding so that incoming packets are routed to the correct server. You can set it such that all ports are redirected to a single machine on the private network.
10-21-2014 11:50 AM