correctly sending over port file to all nodes