131132133134135136137138139140141
UPnPMapping mapping = upnp.getMapping( type != PT_UDP , port ); if ( mapping == null ) { new_mapping = mapping = upnp.addMapping( "NAT Tester", type != PT_UDP, port, true ); // give UPnP a chance to work try{ Thread.sleep( 500 );