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

The Archive Base Latest Questions

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

I have been thinking about building a client to client program. But the way

  • 0

I have been thinking about building a client to client program. But the way I want is to use the broswer to do it, helped by a server that can make that connection.

The troubles comes when I need to have an unnconected socket (or pasive) in a client, waiting for a connection.

I have been thinking about Html5 WebSockets, but it doesn’t give to the client the posibility of having a pasive socket without connecting it with a TCP protocol.

I’m learning this and trying to find the way to do this. All ideas are wellcome :D.

  • 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-17T02:47:53+00:00Added an answer on May 17, 2026 at 2:47 am

    You can have a passive socket in Java applets, Flash and other browser plugins, but in general that can be problematic for public web applications.

    First of all it will be difficult to get through firewalls, etc, and you’ll need to depend and write code for a browser plugin that implements a socket API, and bridge it to JavaScript. If you are interested in some solutions, you may want to check out the following Stack Overflow post:

    • How can I communicate over TCP sockets from JavaScript?

    The traditional approach for peer-to-peer communications between browsers is to have your server acting as a gateway for all the connections. Browsers initiate the connection (either with WebSockets or with XMLHttpRequest) and keep an active connection to the server at all times, re-establishing it if it drops. Since the server application will always find an open TCP connection to all the connected browsers, it can easily route messages to/from all clients.

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

Sidebar

Related Questions

I have a problem that I have been thinking about, but I can't really
I have been thinking about a way solve a problem I have and I'm
I have been thinking about the optimal way to create an XML file using
I have been thinking about a neat way of load balancing and one thing
Here's something I've been thinking about: suppose you have a number, x, that can
I have been thinking about this. I am aware you can use json_encode(); to
I have been thinking about the best way to store product / customer /
I have been thinking about a regular expression that can transform a list like
I have been thinking about this problem for long enough but cannot come up
Ok, have a bunch of questions that I have been thinking about the past

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.