I have a server socket (at 192.168.1.10:5001), works ok. At the same time, I created another server socket, at the side of the client (at 192.168.1.20:5011). Why? I want it to receive notifications from the server, without using timers etc.
When I want to notify the client, I create a simple socket (at the server's side, where I have already a server socket running), but then, the server socket at the client's side receives nothing. I get a successful=false at the socket_connected sub.
But, If I close the serversocket at the server's side (no more listening after service gets destroyed), my new socket works ok, and the notification is received by the client (at its server socket).
Is this something to do with the OS? I mean, seems to me like it cannot ping an IP, while in server listening mode. If I notify the server itself, the serversocket at the server acting as a client now, receives the notifications (means probably that it has no problem pinging itself's ip).
Any idea on where I'm going wrong here (I am sure I'm missing something basic perhaps) would be appreciated.
When I want to notify the client, I create a simple socket (at the server's side, where I have already a server socket running), but then, the server socket at the client's side receives nothing. I get a successful=false at the socket_connected sub.
But, If I close the serversocket at the server's side (no more listening after service gets destroyed), my new socket works ok, and the notification is received by the client (at its server socket).
Is this something to do with the OS? I mean, seems to me like it cannot ping an IP, while in server listening mode. If I notify the server itself, the serversocket at the server acting as a client now, receives the notifications (means probably that it has no problem pinging itself's ip).
Any idea on where I'm going wrong here (I am sure I'm missing something basic perhaps) would be appreciated.
Last edited: