Ports are created with the built-in function open_port. Do you come here often? It is also a garbage-collected runtime system. Do you have any idea why this is not working? Messages can be sent to and received from ports, but these messages must obey the so-called "port protocol."