Update

...rviceInstanceBuilder.getAllLocalIPs().

Set the filter via ServiceInstanceBuilder.setLocalIpFilter().