I'm currently developing a client/server-system that is based on VST plugins on both ends.
Originally I experimented with UDP sockets but somehow the server did not get any messages from the client. I then tried TCP sockets with less success, they neither bind to a port nor connect.
To make sure it was not a VST specific problem I created a standalone application that does nothing but trying to bind a TCP socket and connect it:
socket = new StreamingSocket();
bool bound = socket->bindToPort (12345);
bool connected = socket->connect ("127.0.0.1", 12346, 0);
The socket does not bind, I tried every port greater than 1024 as well. connect() with a timeout of 0 returns immediately, trying several seconds does not help either. I tested both on Windows 8.1 x64 and Windows 7 SP1 x64, so it might be a platform specific issue.
I don't really see where this is coming from since the JUCE socket class seems to be rather simple to use though I have to admit that I'm new to C++ and JUCE.
I'd be happy if anybody could help, thanks in advance!