I have made 2 network devices which are OK to communicate with PC. The connection configuration is that the PC and the 2 devices are connected to an LAN switch. I have written a program which can connect to any one of the 2 devices without problem.
However, actually I want to put the devices behind a router which is connected to the WAN. The router configuration is OK as I can use it to browse web pages without problem.
However, my program cannot communicate with the devices when they are plugged into the router.
I have already set port forwarding in the router so that ports are forwarding to corresponding devices with different internal IPs.
Do anyone has any idea about my problem?