If I understood your question correctly. Ports can be opened or closed to allow or deny data transfer between devices. If you do not close them, an unauthorized user can access the data.
Here you can see the details link text