Unfortunately QLocalSocket prevents from connecting to other servers, and only allows to connect to local pipe servers (well, surely to satisfy the "Local" in the class name.

With a small hack that could be fixed however, I think changing the server name adjustment in qlocalsocket_win.cpp could do the trick:

Original:
Qt Code:
  1. QString pipePath = QLatin1String("\\\\.\\pipe\\");
  2. if (name.startsWith(pipePath))
  3. d->fullServerName = name;
  4. else
  5. d->fullServerName = pipePath + name;
To copy to clipboard, switch view to plain text mode 

Hacked:
Qt Code:
  1. QString pipePath = QLatin1String("\\\\.\\pipe\\");
  2. if (name.startsWith(QLatin1String("\\\\")))
  3. d->fullServerName = name;
  4. else
  5. d->fullServerName = pipePath + name;
To copy to clipboard, switch view to plain text mode