I understand the question but I don't have an answer.
He is asking how does one host a server that other computers will be able to connect to over the internet (or LAN?). My guess would be to find the IP adress and link a port to that, and on the other computer, specify IP address (in the same way one would use the website as server) and use the port you created.
However, this is complete speculation since I haven't even though of it yet
Paul?