chang ip and port variable to right value