External GPS connection with Pixhawk 4

I am interested to integrate an external GPS connection with pixhawk. Can anyone guide me about the configuration in mission planner if external GPS is connected through GPS port or serial port?