Debugging socket connection