The NETCONF protocol typically communicates over port 830. When a script fails to retrieve the running configuration from a NETCONF-capable Cisco IOS XE device, it's often because the script is not using the correct port for NETCONF communication. By setting the script to use port 830, you align with the default NETCONF port, which should resolve the issue and allow the script to successfully retrieve the configuration.