Move hostname and port settings to network section