"running 2 Java programs at the same time, in the same IDE" - Are you running this Android program on your phone, or on an emulator? Each has different networking environments, and this information is critical.
I'm running it on phone,
I raised that because hplus0603 suggested i should try running the client and server on the same machine. Actually both the Java and Android code run in the same IDE but since I always connect to my phone, ultimately the Android client code runs on the phone. So i took his suggestion to mean i should run both as Java applications rather just Java and Android
"I don't know a code line that would let me do this" - Step 1, construct an unconnected socket, Step 2, connect while setting the timeout. You'll need to create a SocketAddress from your hostname and destination port number to do that.
Got it now, overlapping/ambiguous interpretation of constructor misled my thoughts... when you initially mentioned "constructor" i confused it to mean the current Android class construct (not realising you meant the constructor for creating the socket).
so I used
sock = new Socket(serverIP, 52059);
Now changed to
sock = new Socket();
sock.connect(new InetSocketAddress(serverIP, 52059), 2000);