So I continue to work on my Android network scanner, and now on my Android tablet I get this problem.
Using the following code, I get a successful connection.
Socket mySocket = new Socket(iIPv4 + i, port);
Using this code, it fails to ever connect.
Socket mySocket = new Socket();
SocketAddress address = new InetSocketAddress(iIPv4 + i, port);
mySocket.connect(address, 1000);
The problem is, I need to lower the timeout as seen via the .connect() function. 1000 is way too high, I just tried raising it for debugging purposes.
Anyone got any ideas?