I have a network related problem and need help to understand how TCP/IP based networks work.
I have a computer with two network card. One with the following IP 192.168.1.10, the second with 192.168.2.10.
I have an application that send a broadcast udp message over the network.
I have an EMX based module connected to the second card of the computer. its adress is 192.168.2.40.
When I launch the application the udp broadcast message is seen by the EMX board. The EMX then should establish a connection to a remote host on 192.168.1.10.
tcpsocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ServerEndPoint = new IPEndPoint(DestinationIP, 47001); tcpsocket.Connect(ServerEndPoint);
The problem is that connect blocks. This does not happened if I connect the EMX to the first network card of the computer. What is wrong?