I try to test my application between two machines(Ubuntu20.04). And I try it just like following cmd:
server(192.168.95.143):
./millionaire_prob_test -r 0
client(192.168.95.142):
./millionaire_prob_test -r 1 -a 192.168.95.143
And I also try different ports. But it doesn't work. (Even in two VM machines in one computer)
It just returns:
Connect failed due to timeout! There was an error during establish connection, ending!
I capture it using Wireshark, the server just return RST for client's request. And the connection in the machine work well( I test it using C++ socket application)
Is there some wrong with my setting? Looking forward to your reply!
I try to test my application between two machines(Ubuntu20.04). And I try it just like following cmd: server(192.168.95.143): ./millionaire_prob_test -r 0 client(192.168.95.142): ./millionaire_prob_test -r 1 -a 192.168.95.143
And I also try different ports. But it doesn't work. (Even in two VM machines in one computer) It just returns:
Connect failed due to timeout! There was an error during establish connection, ending!
I capture it using Wireshark, the server just return RST for client's request. And the connection in the machine work well( I test it using C++ socket application)
Is there some wrong with my setting? Looking forward to your reply!