can UDP run on computers that support only TCP protocol? WHy?

UDP is a protocol within the TCP/IP suite. TCP is also a protocol within the TCP/IP suite. I really do not understand your question though.

For the UDP protocol to "run" on a computer, it first must have the TCP/IP suite installed. Once that is installed, it is available for use. However, the use of either TCP or UDP is going to depend on the application layer protocols. For example, when you access a web page, one of the protocols involved is HTTP. HTTP uses TCP. However, in the example, of DHCP, that protocol mainly uses UDP. Other protocols like DNS can use either TCP or UDP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.