Multiplayer game tcp connection

Hey how can i connect two or more computers over the internet?
for real time data transfer.
tcp nodes do only work in a local network right?

cheers.

e: just looking in node.js for this

tcp nodes should connect over the internet, too. (more a question than a statement)

tcp and udp nodes have no network restrictions. it is only your network setup / firewall that imposes restrictions. if you have a route over the internet tcp/udp nodes can take this. so this is less a vvvv than a network-admin question.