This article proposes a Widget-based UPnP framework (WUF) architecture for service discovery between multiple home social networks across the Web. Using a widget base for object-oriented API can be implemented as a user friendly interface for relevant processes, as its program design has high-level components applied in applications and the User-Controls of the API layer in the Visual Studio environment. Thus, this paper focuses on the management scheme for UPnP devices, which uses the standard UPnP device network protocol and the subject of this Agreement Device. This system adopts a multiple system management center (SMC) server into a gateway, which deploys a proxy map to remote devices on a local network using the gateway's IP address, collects all services within the local home network, and exchanges a list of local services with other gateways of remote home networks. Whenever a local device queries specific services, the gateway will response on behalf of the remote devices that have the requested services will be initialization update message in device manager.