use port attribute