How to connect my own interface to mission planner?

i know its via udp connection but ive never been able to do that i always get that error says sometihng like com error or smth and i want a proper solution please .

Need more info, what system, what code, what connection…
Do you have basic understanding of UDP protocol, ports etc ?