My new laptop (Alienware m17x) throws a java.net.SocketException: Invalid argument: connect when I run the following basic code:
java.net.SocketException: Invalid argument: connect
Server.java:
Does it work if you tell Java to use the IPv4 stack?
Use the following command line option when starting the server and client.
-Djava.net.preferIPv4Stack=true
See also here