Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void doPortForwarding() throws SocketException, UnknownHostException, IOException, SAXException, ParserConfigurationException {
- GatewayDiscover discover = new GatewayDiscover();
- discover.discover();
- GatewayDevice d = discover.getValidGateway();
- if (null != d)
- {
- System.out.println("Found gateway device {" + d.getModelName() + "}," + "{" + d.getModelDescription() + "}");
- }
- else
- {
- System.out.println("No valid gateway device found.");
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement