I'm playing around with SLP and I've run into a problem. When SLPCore (line 807) executes socket.setInterface(addr); I'm getting:
ch.ethz.iks.slp.ServiceLocationException: Can't assign requested address at ch.ethz.iks.slp.impl.SLPCore.multicastConvergence(SLPCore.java:915) at ch.ethz.iks.slp.impl.LocatorImpl.sendRequest(LocatorImpl.java:267) at ch.ethz.iks.slp.impl.LocatorImpl.findServiceTypes(LocatorImpl.java:114) at org.eclipse.ecf.internal.provider.jslp.LocatorDecoratorImpl.findServiceTypes(LocatorDecoratorImpl.java:54) at org.eclipse.ecf.internal.provider.jslp.LocatorDecoratorImpl.getServiceURLs(LocatorDecoratorImpl.java:106) at org.eclipse.ecf.internal.provider.jslp.JSLPDiscoveryJob.run(JSLPDiscoveryJob.java:43) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
When it executes socket.setInterface(addr), it's using my first IP address which happens to be my work VPN assigned IP address. If I set
-Dnet.slp.interfaces=192.168.1.10
and use my local network, everything works just fine. Ultimately, I need to use SLP with a static DA which will reside on my work network and will be accessed by customers using VPN from home. Any idea why I see the problem when using my work VPN IP address, and any ideas on a solution such that I can eventually use a static DA?
Bryan |