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 6687501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:17:47+00:00 2026-05-26T05:17:47+00:00

I’m not yet sure if this is possible, and I’m looking for where more

  • 0

I’m not yet sure if this is possible, and I’m looking for where more information might be found. It’s mostly being done as an exercise, but I want to see if I can implement this at all as a solution to sharing very large files with minimal hassle between two individuals (and I realize some solutions might exist that are similar, but I still want to try and write one).

Basic setup is as follows:
I’m figuring on configuring a server with a program that listens on port XYZ. I’d have two example users (A and B). User “A” wants to share a file with user “B”. “A” goes to his local client and pushes some information to the server. He gets back a key that he can send to user “B” however he likes (instead of publishing or broadcasting the location). User “B” gets the key, puts it into his client. His client goes to the server and gets the information on how to connect to User “A”s machine for the file transfer.

Now, this is simple enough with machines that can connect via a socket directly, but I’m assuming user A and B are on completely different networks, behind different public IP’s (normal internet users). So what I wondered is, can I have user “A” and user “B” monitor a status on the server, and when it’s apparent that it’s time to share the file, use the server as a bridge to connect the two somehow … communicate a handshake and then either a new socket, or somehow join sockets connected to the server? The caveat in this whole thing is that I’d like the bandwidth not to be transferred along the server (or I could just initiate direct connections to the server), but directly peer to peer between the two machines, using the server only to negotiate a connection.

But I’ve no idea where to look on information about this, or if it’s possible 🙂

My preference is to use Java.

  • 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-05-26T05:17:48+00:00Added an answer on May 26, 2026 at 5:17 am

    In order to directly connect the two sockets without using the server as a broker, one will have to have the ability to be hit directly as an endpoint.

    I can think of no facility that can negotiate two connections behind a NAT or PAT and then drop out of the loop leaving the other two connected.

    If you can build into the design spec that the clients must have their respective listen ports open and mapped in whatever system they use to route then it would be possible.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
In my XML file chapters tag has more chapter tag.i need to display chapters
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.