Find the answer to your Linux question:
Results 1 to 5 of 5
1) i use ubuntu 6.06 on a laptop (acer travelmate 290) with an integrated wlan device. there is a wlan-router (netgear fwg114p) which connects to internet (isdn). connection to the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3

    check if internet connection was lost


    1) i use ubuntu 6.06 on a laptop (acer travelmate 290) with an integrated wlan device. there is a wlan-router (netgear fwg114p) which connects to internet (isdn). connection to the network works, also accessing the internet.

    2) the first thing: if i download large files or try to access a lot of websites at the same time, sometimes the router quits the connection to internet. he just dials in again, but then he gets another ip, and thats not cool cause some tools like gaim are confused by the new ip and need to be reconnected. i don't know why the connection gets lost, maybe the router gets afraid of the huge dataload, maybe the firewall thinks it's a hacker attack. maybe the new IP the router gets is one which was assigned to a user who used filesharing tools and other users still port-scan the ip which the router maybe doesn't like.
    this occours using linux, win, other laptops, desktop pcs, connected by wlan or by cable...doesn't matter how and who is connected.
    it works if the laptop is directly connected to the modem, so it must be the router who just hangs up. if somebody knows a solution for this, would be nice if you tell, thanks in advice.

    3) the actual reason why i'm posting: gaim needs about 15 minutes until it knows that the connection was lost and reconnects by itself. if i don't see that the router reconnected, then i don't know that i can't receive any messages anymore. that's really annoying.
    so i thought about a litte script or c or java program which checks every minute if the router is still connected to the internet with the same ip as 1 minute ago. if not, it should notify by playing a sound and/or flashing a window, maybe also tell gaim to reconnect (if that's possible), or show a button which automatically stops the gaim-process and starts gaim again. but i just can't find out how to determine the ip used for the internet connection, and also not how to write a bash script which does the desired things. i can write a java program doing the other things, but how to find out the ip?

    maybe somebody knows other solutions or maybe there is a tool which can do this...

    thanks in advice!

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by claunfish
    there is a wlan-router (netgear fwg114p)
    [...]
    this occours using linux, win, other laptops, desktop pcs, connected by wlan or by cable...doesn't matter how and who is connected.
    Did you make sure you have the latest firmware version for it?
    Here :
    http://kbserver.netgear.com/products/fwg114pv1.asp

    Or here :
    http://kbserver.netgear.com/products/fwg114pv2.asp

    Quote Originally Posted by claunfish
    3) the actual reason why i'm posting: gaim needs about 15 minutes until it knows that the connection was lost and reconnects by itself.
    So you are using the autoreconnect GAIM plugin?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3
    yes twice. latest firmware installed (it's the FWG114P v1) since i use the router, and i use the autoreconnect plugin for gaim. but as the router reconnects immediately, there is a connection again after some seconds. so gaim doesn't recognize that the connection was lost, and looks like it doesn't check if the ip is still the same (maybe it just checks the internal IP which is, for the laptop, always 192.168.0.10). if i write messages after the router reconnected, gaim also doesn't recognize that it won't work cause it needs to reconnect to icq with the new ip. so it outputs the message as if it works...i just don't get answers at this point i most times know that the router disconnected.

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by claunfish
    at this point i most times know that the router disconnected.
    You might try to verify if the router is really responsible for this, or your modem, or the line. Try the modem directly on some wired computer perhaps. Or talk to your ISP about which procedure you should follow to diagnost the problem.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3
    doesn't matter which modem and which computer (laptop or desktop) is used.
    when online by the router (doesn't matter if connected to router by cable or wireless) the connection gets lost as described.
    if connected directly to internet by a modem, it doesn't disconnect - no matter which computer and which modem used.
    also tried to contact the provider, but they can't help. but you get familiar with this, and after sometime you just ignore it.
    but thanks for your posts!

    see the third point in my first post as the most important, i just posted point 2) cause i had to describe the situation, and then, by the way, i thought i could ask, maybe anybody here has experiences with netgear fwg114p.

    but thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •