Connect p5 to touchdesigner

I can’t figure out how to connect p5 to touchdesigner. I have a node.js server running and it works between tabs, but the socket io dat will not connect to the server and it doesn’t get any messages.