With some hacking, got binary tcp protocol to work