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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:01:00+00:00 2026-06-10T00:01:00+00:00

I want to check ping from Browser to a Server. Ping/Latency should not be

  • 0

I want to check ping from Browser to a Server.

Ping/Latency should not be from Server but from Client’s Machine.

I have seen sites like Pingtest.net so it is possible to do from Browser.

Any language will do.

The server ping can also be tested by an UDP packet other than normal shell command ping.

How should i proceed. ?

  • 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-10T00:01:01+00:00Added an answer on June 10, 2026 at 12:01 am

    Try using XMLHTTPRequest() for javascript. The objective is to make about 10 objects and place them in an array.
    Then use onreadystatechange in each and every one of them. For the function inside it, use the status 1 to start the timer and status 3 to finish the timer. Use the object Date() to get the times.

    That’s the whole idea behind solving that. if you need more just comment my answer and I’ll try to make it more complete and “spoily”.


    Assuming you know how to program in javascript, this is one idea for a possible solution:
    You first create an array where you’ll insert in each position an instance of XMLHTTPRequest().
    Then, you’ll create a function that returns a function where:
    The outside function will save some sort of identification towards the “current” request, including a reference to the instance. This function is supposed to be executed right away.
    The inner function is supposed to be used to execute the state and know when to “start” the timer and when to “stop” the timer.
    Take care of opening the connect and sending the headers to all of ’em, wait to get the answer and finally register the times you got. Do some math and you get the ping.

    That’s the whole idea behind this. Good luck!

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

Sidebar

Related Questions

I want to check whether servers are active or not from the iphone application
I want to check which port is used, when the port is not explicitly
I want to check checkbox like $('#riderCheck').attr('checked','true') on some condition. but the problem is
I want to continuously ping a server and see a message box when ever
I want to make impossible checking checkbox in WPF (from C# code). Only unchecking
i want to make empty textbox checking for android. i tried try catch but
I don't want check if an item with a value exists in the arraylist,
I want to check if my many column in datagridview is empty. here my
I have a method that loops ping requests, and I'd like when I click
I have a local repository cloned from a bare remote repository. The following command

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.