One of the essential goals of knowledge sharing is to enable collaboration among the participants (or collaborators) to share relevant knowledge. By collaborators, here we refer to other Web-based workers who either possess related knowledge or can help to discover and obtain the knowledge through communications and discussions. The performance of knowledge sharing is fundamentally based on how collaborators and relevant knowledge can be effectively found. In this paper, we establish a peer-to-peer-based social network to facilitate and enhance Web-based knowledge sharing by finding knowledgeable and trustworthy collaborators who are willing to share their knowledge. Results of this research demonstrate that applying such mechanism do improve the quality of collaboration in knowledge sharing.