UPDATE: Working now with TCP but not UDP.