add inet_attr/2 for specified ports