diff --git a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.cpp b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.cpp index b422a1cb67..3890f8a8b3 100644 --- a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.cpp +++ b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.cpp @@ -33,13 +33,13 @@ InterprocessConnectionServer::~InterprocessConnectionServer() } //============================================================================== -bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber) +bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber, const String& bindAddress) { stop(); socket = new StreamingSocket(); - if (socket->createListener (portNumber)) + if (socket->createListener (portNumber, bindAddress)) { startThread(); return true; diff --git a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h index 32350837bc..01bee327dc 100644 --- a/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h +++ b/modules/juce_events/interprocess/juce_InterprocessConnectionServer.h @@ -57,9 +57,16 @@ public: Use stop() to stop the thread running. + @param portNumber The port on which the server will receive + connections + @param bindAddress The address on which the server will listen + for connections. An empty string indicates + that it should listen on all addresses + assigned to this machine. + @see createConnectionObject, stop */ - bool beginWaitingForSocket (int portNumber); + bool beginWaitingForSocket (int portNumber, const String& bindAddress = String()); /** Terminates the listener thread, if it's active.