You have ServerSocket and Socket . Call Socket client = ss.accept() to wait until the client hooks. Ff you are not sure which port is free, just use ss = new ServerSocket() . This will automatically assign a free port. Also make sure that you do not do this in the main topic and declare the appropriate permissions in the manifest.
bluewhile
source share