Configuring ports