\"b??dny argument\" means \"bad argument\". This bad argument, whatever it is, seems to be supplied to the java socket library. Perhaps you need to bind your server to a certain IP or something. It seems that your server is in NATted IP and your client is not - this might be the problem.