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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:50:33+00:00 2026-06-02T06:50:33+00:00

Say I wanted to write a local web server that listened on a random

  • 0

Say I wanted to write a local web server that listened on a random port.

Now I want to write HTML that works in most browsers that can do AJAX calls to it.

Is there any fundamental limitation here?

EDIT: I’ve confused people – probably because this is almost the first time I’ve ever posted with the javascript tag and I don’t have a feel for how to ask questions.

I recently became aware of node.js – which I didn’t learn more than it makes writing stand alone web servers easy to implement.

Then I had the vision of a site sort of like this one (any programming board really) but where code samples could execute on end users local machine. I don’t like browser plugins at all though, so I started trying to think of a way to make it happen with minimal knowledge between the web/browser part and the local machine’s service (there has to be interaction – i just wanted to think of the minimal amount).

And that is just an example – really I write intranet business apps for a living (in which case defining well known ports is easier so I don’t need an answer to this question for that purpose..)

  • 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-02T06:50:34+00:00Added an answer on June 2, 2026 at 6:50 am

    The same origin policy will prevent you from accessing other ports (at least in most browsers), but you I guess you could send JSONP requests to every port on localhost, and then catch the port that gives a valid response.

    …If you really wanted to, that is. There is a lot of valid ports, so it could take some time.

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

Sidebar

Related Questions

Say I wanted to write a program that would export calendar data so that
Let's say that you want to write an application that processes multiple text files,
Say I wanted to list buttons so that the last one was anchored to
Lets say I wanted to scrape a webpage, and extract some data. I'd most
Lets just say that I wanted to be extra careful with the website I'm
I want to write a python script (Yes not Bash) that will use flac
Say, I have a variable rv which has some numerical value. Now, I want
Say I wanted to have one variable in a class always be in some
Lets say i wanted to add another variable to the database can anybody tell
Lets say i wanted to compare a variable in the sqlite database and if

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.