Use addr( ) , you can get the node number. I need to get the node that an agent reside when I write the recv() function of an agent, how could I do? liu yong [email protected]