Tutorial by Examples

build.gradle repositories { maven { url 'http://4thline.org/m2' } } dependencies { // Cling compile 'org.fourthline.cling:cling-support:2.1.0' //Other dependencies required by Cling compile 'org.eclipse.jetty:jetty-server:8.1.18.v20150929' compile 'org.eclipse.jetty:jetty-servlet:8....
String myIp = getIpAddress(); int port = 55555; //creates a port mapping configuration with the external/internal port, an internal host IP, the protocol and an optional description PortMapping[] desiredMapping = new PortMapping[2]; desiredMapping[0] = new PortMapping(port,myIp, PortMapping.Pr...

Page 1 of 1