Hey I will be sending data over Wi-Fi to my computer using Android and java, on my server side (Windows PC) I have this:
serverSocket = new ServerSocket(port);
And on the client side (Android):
InetAddress remoteAddr = InetAddress.getByName(SERVERIP);
socket = new Socket(remoteAddr, port);
The question is what port would be recommended to use?
Pick any unreserved/unassigned TCP port number. Specifically, it is any number in the range 49152–65535.
The IANA page doesn’t seem to be working at the moment, but here’s a wiki page with the same sort of information.