With the population of network usage, it is possible to connect home appliances with each other. The basic demand is to connect home appliances easily with less user intervening. UPnP is the most popular technology for realizing digital home. UPnP provide service and device discovery by sending broadcast message periodically. Therefore, this causes efficiency problem arising from many broadcast messages. In addition, home network is an emergence environment which might comprise several network architecture including Ethernet, wireless network, or power-line etc.. Therefore, traditional broadcast will not work well in the complex network architecture. In order to solve the above problems, we propose a middleware implementation to realize UPnP operations over peer-to-peer overlay network.