Skip to content

Ping server?

Featured Replies

Hey there folks.

Basically I am wanting to know if there are certain servers that I can ping every once in a while using a HTTP address to keep a 3G signal alive?

Could I just use google or something?

Probably sound like a total noob but don't really know too much about this sort of thing.

Phil

The easiest and crudest way i can think of would be a simple batch file.

Copy and paste this into a txt file and save it with the extension .bat and then double click it to run it.

@echo off
:1
ping bbc.co.uk -n 1
ping 1.1.1.1 -n 1 -w 1000 >NUL
goto 1

The file will ping bbc.co.uk once then ping an imaginary IP using the -w flag that will cause it to wait for 1000ms, it will then go back to the start and do it all over again.

So to make it wait 60 seconds, you would replace the 1000 with 60000 and so on. You can obviously replace the bbc bit with any ip or domain you want to ping.

www.bbc.co.uk or www.google.com

are a fair bet. a ping won't use http though, if you specifically need to use http, you could use wget in a script, but ping should keep the link up.

Can you not just adjust the link timeout? Usually setting to 0 will disable it.

  • Author

Oh forgot to say that its not running on a pc... all I can do is input a http url and set the interval in ms.

Thanks

Gentoo uses yahoo as a test when installing... so I guess yahoo are fairly down with the whole pinging thing ;)


  • Author

that could work... I could just run it on one of the machines to keep the connection going...

Its a 3G mobile router you see... serving a few laptops...

Thanks for the help

Phil

Nothing will "ping" over http as ping is specified as an application that runs over the ICMP layer.

As already stated what you need is an http keep alive script that sends an http packet every (time interval /2) to make sure the system stays alive.

If you have a unix/linux box anywhere it's very easy to use cron to script elinks or another command line based web browser to connect to a URL every

On windows XP you could use the AT command to set the timing and then use:

netsh

It's under

diag ---> connect

That would see you done :)

I would have thought the 3g router would have had a keep alive option. What make and model are you running ? Always better to configure it at source rather than running a script somewhere else.

  • Author

Right on further investigation it seems to wording on the set-up page on the router is wrong as it isn't a HTTP address it needs but an IP. I will probably just run a script etc on one of the machine.

It does have a keep alive option but it still seems to be timing out so wanted to manually put in a different address. The router is an Icomera Moovbox M200 btw.

Phil

Use the html page i used above then and replace google.co.uk with http://212.58.226.141/ which is the bbc news website.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Welcome to BRISKODA. Please note the following important links Terms of Use. We have a comprehensive Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.