What IP adress should be used to connect to server running on my pc from other machines? In my server, I call zmq_bind to listen for all incoming connections, like this:
zmq_bind(socket, "tcp://*:12781");
In my client, I try to connect to the server by:
string IP = "127.0.0.1"; //what should be here?
string connection_string = "tcp://" + IP + ":12781";
zmq_connect(socket, connection_string);
My program works already when the server and client are running on the same computer(IP is 'localhost', '127.0.0.1' or '192.168.1.13'). What IP should I use when connecting from other computers? I already tried my IPV4 which I found here, it didn't work.
Thanks for help.