Updated server and fakeclient to use sockets to communicate