Mavlink OSError: [WinError 10049]

Hi,
I am trying to establish a connection using the Mavlink protocol with pymavlink, but I encountered the following error:
the_connection = mavutil.mavlink_connection(‘192.168.144.11:14552’)
OSError: [WinError 10049] The requested address is not valid in its context

Code:
from pymavlink import mavutil
the_connection = mavutil.mavlink_connection(‘192.168.144.11:14552’)
the_connection.wait_heartbeat()
print(“Heartbeat from system (system %u component %u)” % (the_connection.target_system, the_connection.target_component))
msg = the_connection.recv_match(blocking=True)

Could someone help me rectify this error?
the connection works fine when connected to mission planner and QGC also able to ping the IP address.