There is a java server running with ServerSocket that handles connections. In new separate streams. There is a client (Android application) that "knocks" on the desired port of the server.
The question is how to place the server on a local tomcat, to test the client using a real device via usb?
upd: and if there is a computer without a network / Wi-Fi / Internet .. you need to test this serv and client using a real android device connected in debug mode via usb .. Q: what address and port then knock on the client ??