diff --git a/core/src/main/java/org/fourthline/cling/transport/impl/NetworkAddressFactoryImpl.java b/core/src/main/java/org/fourthline/cling/transport/impl/NetworkAddressFactoryImpl.java index 2fe6ca980..358a69ab4 100644 --- a/core/src/main/java/org/fourthline/cling/transport/impl/NetworkAddressFactoryImpl.java +++ b/core/src/main/java/org/fourthline/cling/transport/impl/NetworkAddressFactoryImpl.java @@ -329,6 +329,7 @@ protected void discoverNetworkInterfaces() throws InitializationException { *
  • have no bound IP addresses
  • *
  • named "vmnet*" (OS X VMWare does not properly stop interfaces when it quits)
  • *
  • named "vnic*" (OS X Parallels interfaces should be ignored as well)
  • + *
  • named "vboxnet*" (OS X Virtual Box interfaces should be ignored as well)
  • *
  • named "*virtual*" (VirtualBox interfaces, for example
  • *
  • named "ppp*"
  • * @@ -359,6 +360,11 @@ protected boolean isUsableNetworkInterface(NetworkInterface iface) throws Except return false; } + if (iface.getName().toLowerCase(Locale.ROOT).startsWith("vboxnet")) { + log.finer("Skipping network interface (Virtual Box): " + iface.getDisplayName()); + return false; + } + if (iface.getName().toLowerCase(Locale.ROOT).contains("virtual")) { log.finer("Skipping network interface (named '*virtual*'): " + iface.getDisplayName()); return false; diff --git a/core/src/manual/basicapi/upnpservice.xhtml b/core/src/manual/basicapi/upnpservice.xhtml index 1b57ae110..85c032882 100644 --- a/core/src/manual/basicapi/upnpservice.xhtml +++ b/core/src/manual/basicapi/upnpservice.xhtml @@ -133,8 +133,9 @@ The NetworkAddressFactory provides the network interfaces, ports, and multicast settings which are used by the UPnP stack. At the time of writing, the following interfaces and IP addresses are ignored by the default configuration: any IPv6 interfaces - and addresses, interfaces whose name is "vmnet*", "vnic*", "*virtual*", or "ppp*", and the - local loopback. Otherwise, all interfaces and their TCP/IP addresses are used and bound. + and addresses, interfaces whose name is "vmnet*", "vnic*", "vboxnet*", "*virtual*", or + "ppp*", and the local loopback. Otherwise, all interfaces and their TCP/IP addresses are + used and bound.

    You can set the system property org.fourthline.cling.network.useInterfaces to