in idea-plugin/src/main/java/com/jetbrains/ide/streamdeck/RemoteActionServer.java [41:60]
public void start() throws IOException {
ActionServerSettings myActionServerSettings = ActionServerSettings.getInstance();
int port = myActionServerSettings.getDefaultPort();
if(port <= 0) {
port = 21420;
}
server = HttpServer.create(new InetSocketAddress(port), 5);
server.createContext("/", new HandleHttpRequest());
// Start the ActionServer on a separate thread from the rest of the framework
// so that it can respond while debugging the framework itself.
server.setExecutor(Executors.newCachedThreadPool());
server.start();
started = true;
log("Stream Deck Remote Action Server listen on host " + String.join(",", LocalHostUtil.getLocalIPs()) + " port:" + server.getAddress().getPort());
System.out.println("RemoteActionServer listening on port " + server.getAddress().getPort());
}