Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:58:34+00:00 2026-06-02T15:58:34+00:00

I need to develop a file sharing apps over the internet by p2p. I

  • 0

I need to develop a file sharing apps over the internet by p2p. I have very rough idea for developing p2p based apps.

Suppose I have one server which has a static IP which is running at specific port like 5001. Now client connects to server and sends its own public IP.

Questions 1

With the help of C# how client can connect to server and send its own public IP?
Guide me which class I need to use?

When server will get IP from client it will store. So when two clients connect then server has IP info of two different PCs. PC1 will request server to get the IP of PC2 and same way PC2 will request to get ip of PC1. So now PC1 & PC2 both have the IP of each other.

Questions 2

Now question is how PC1 can connect to PC2 which code i need to write to connect?

Questions 3

Now question is if PC1 can connect to PC2 then how PC1 can send file to PC2 ?

Please tell me which class I need to use in order to develop this type of P2P-based file sharing apps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:58:36+00:00Added an answer on June 2, 2026 at 3:58 pm

    When it comes to peer2peer, you always need at least one PC who has port forwarding enabled. This means, that if you have a listener/server at pc1 and a client at pc2, you would need a port forwarding on pc1.

    This is called HighID/LowID in general and is a symptom of the NAT firewall implemented in almost every router. Without at least one port forwarding, there is no way two PCs can connect. This is because the router wouldn’t know which local IP to map to an incoming TCP packet unless there is a forwarding.

    As for what classes you can use: Take a look at System.Net.TcpClient and System.Net.TcpListener

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a requirement where we need to develop a webservice client based upon
I have a log file that continually logs short lines. I need to develop
I need to develop a generic jQuery-based search plugin for the ASP.NET MVC application
I need to develop a CRM system which will allow users to have a
I need to develop a file synchronization application to sync my files from my
I'm currently developing a custom Lync client. I need full control over the UI.
I need to develop a mailing system in the intranet web-based application that I
I have an architectural question, we need to develop information system with two frontends:
I often need to develop stuff on the road, with no internet/network connection. I
I need to develop an application that will read and understand text file in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.