# Local host option for InterprocessConnectionServer

**URL:** https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018
**Category:** General JUCE discussion
**Created:** [June 8, 2016, 8:01am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018 "2016-06-08T08:01:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![christer](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@christer](https://forum.juce.com/u/christer)
#### Post date: [June 8, 2016, 8:01am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018/1 "2016-06-08T08:01:51Z")

</div>

I’ve started to use the InterprocessConnectionServer and I find it a bit annoying that I have to allow my app through Windows’ firewall even though I only want to use a local connection.

Would it be possible to add an option so that the InterprocessConnectionServer can be configured to only listen to the local host interface? It would be highly appreciated as there’s no need to allow an app through the firewall when local host is used.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)
#### Post date: [June 8, 2016, 8:06am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018/2 "2016-06-08T08:06:55Z")

</div>

InterprocessConnection can use either a pipe or a socket, so there’d be no firewall problems with a pipe, right?

---

<div class="post-metadata">

### Author: ![christer](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@christer](https://forum.juce.com/u/christer)
#### Post date: [June 8, 2016, 9:01am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018/3 "2016-06-08T09:01:52Z")

</div>

Yes, but I have multiple clients attaching to a server and then it’s convenient to use the InterprocessConnectionServer to create new connections.

Ideally I’d want to be able to pass a local host address into the beginWaitingForSocket method. I did a local patch where I updated it like this:

```
beginWaitingForSocket (const int portNumber, const String& localHostName = String())
{
    stop();

    socket = new StreamingSocket();

    if (socket->createListener (portNumber, localHostName))
    {
        startThread();
        return true;
    }

    socket = nullptr;
    return false;
}
```

---

<div class="post-metadata">

### Author: ![myhrman](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@myhrman](https://forum.juce.com/u/myhrman)
#### Post date: [June 8, 2016, 9:51am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018/4 "2016-06-08T09:51:14Z")

</div>

+1 for this request

Very useful when the socket server is intended only for clients running on the same machine. Nice to get rid of the windows firewall popup.

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [June 15, 2016, 11:01am UTC](https://forum.juce.com/t/local-host-option-for-interprocessconnectionserver/18018/5 "2016-06-15T11:01:24Z")

</div>

Thanks for the suggestion. I’ve added this feature on the latest develop tip.
