configuring ports