Fixed a horrible (to find) bug in the client class. Remote connections now work.