app/src/main/java/com/hdl/photovoltaic/internet/HttpServer/MyNanoHttpService.java
@@ -21,6 +21,11 @@ try { myNanoHttpServer.start(); } catch (Exception e) { // if (serverSocket.isBound() && !serverSocket.isClosed()) { // // Port is available // } else { // // Port is not available // } e.printStackTrace(); startService(new Intent(this, MyNanoHttpService.class)); }