QGroundControl doesn't get data from UDP Port

Hi everyone, I’m new to QGroundControl.
I wrote a Python script where I take my GPS data from a USB port. Then, I created an UDP client to send the obtained data to the QGroundControl. Unfortunately, these data aren’t read by the QGroundControl (which I have read that behaves like an UDP server). These are my code and the settings of my QGround:

master = mavutil.mavlink_connection('udpin:0.0.0.0:14550') 
...
gps = serial.Serial("/dev/ttyUSB1", 4800)
...
while(open):
try:
	resp = gps.readline() 
except serial.SerialException as e:
	print('QGround is trying to access at the same USB1 port') 
client_sock.sendto(resp, ('127.0.0.1', 27000))