Page 1 of 2 12 LastLast
Results 1 to 10 of 11

BSNL Broadband: Script to log the current IP address

  1. #1
    Regular
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    455
    Liked
    23 times

    Default Script to log the current IP address


    Whenever the Modem starts/reboots, you are assigned a WAN IP. This IP is not shown in the IPCONFIG output.

    you can see your WAN IP from Modem Admin page - Device Info - WAN (first row 0/35 - last column will show you the IP)

    You can also see your WAN IP, when you access myIPaddress.com: What is my IP address? How do I find my IP address?

    i want some script or networking command, which can retrieve this IP for me.
    Hindustan Bol Raha Hai - "BSNL, Improve your Customer Care/Support Services"

  2. #2
    Regulars
    Join Date
    Jul 2006
    Location
    Mumbai
    Posts
    15,946
    Liked
    1093 times

    Default Re: Script to log the current IP address

    In windows or linux?

    u can use cURL and grep combination in Linux.


    same is possible in windows as well but u need to download those softwares.

  3. #3
    Computer Addict meetdilip's Avatar
    Join Date
    Apr 2009
    Location
    India
    Posts
    2,621
    Liked
    162 times

    Default Re: Script to log the current IP address

    Would be easier if you mention the purpose. Do mention if OS is not Windows.
    An invasion of armies can be resisted, but not an idea whose time has come.

    How would you react, if you board an auto-rickshaw/taxi, the vehicle takes you at good speed for 1/4th the distance and then drives at 10 kmph stating that other vehicles have the right to use the road at good speeds?

  4. #4
    pk_
    pk_ is offline
    Regular
    Join Date
    Oct 2011
    Location
    India
    Posts
    137
    Liked
    24 times

    Default Re: Script to log the current IP address

    1. To print the ip on terminal

    wget -q -O - http://www.fibernet.in/utils/ip.php


    2. To print this ip to a file

    wget -q -O /path/to/file http://www.fibernet.in/utils/ip.php

    2. To send your IP to some other program(say grep) , You can use the pipe


    wget -q -O - http://www.fibernet.in/utils/ip.php | grep any_regex

  5. #5
    Regular
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    455
    Liked
    23 times

    Default Re: Script to log the current IP address

    Sorry I forgot to mention that its on Windows OS. But if its simple on Linux, then I can run a Ubuntu virtual machine to try the necessary script.

    ----------

    @meetdilip - its the old problem. my modem keeps resetting automatically(i feel between every 1-2 hours). whenever this event happens my active session/chats/vpn gets interrupted. this is causing big problem when i am doing some important work. otherwise for downloads i can manage with download managers.

    I want to find out the pattern and see how many times it happens in a day... create a detailed report of 1 week and then speak with a manager at my Exchange. i recollect this problem started after i changed my plan a year back and my IP changed from 59.x.x.x to 117.x.x.x

    ----------

    Here is my current modem stats:



    Uploaded with ImageShack.us
    Last edited by ckr97; November 9th, 2011 at 06:47 AM. Reason: fixed typo

  6. #6
    Regulars
    Join Date
    Jul 2006
    Location
    Mumbai
    Posts
    15,946
    Liked
    1093 times

    Default Re: Script to log the current IP address

    You can find pattern by checking ur onlines session logs on BSNL portal.

    Otherwise switch to bridgemode and let ur windows control the connection/disconnection.

  7. #7
    MODERATOR
    Join Date
    Aug 2006
    Location
    CHENNAI
    Posts
    9,831
    Liked
    105 times

    Default Re: Script to log the current IP address

    Last edited by essbebe; November 9th, 2011 at 03:02 PM.

  8. #8
    Regular
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    455
    Liked
    23 times

    Default Re: Script to log the current IP address

    @essbebe - thats manually visiting a website and checking. I want to achieve this through some program, which will be running on my computer.

  9. #9
    pk_
    pk_ is offline
    Regular
    Join Date
    Oct 2011
    Location
    India
    Posts
    137
    Liked
    24 times

    Default Re: Script to log the current IP address

    i told you a simple one line code to get it.what is your problem now?

    Simple download wget for windows and give this command

    wget -q -O - http://www.fibernet.in/utils/ip.php


    on linux it is as simple as giving this command because wget is already installed

  10. #10
    MODERATOR
    Join Date
    Aug 2006
    Location
    CHENNAI
    Posts
    9,831
    Liked
    105 times

    Default Re: Script to log the current IP address

    Did this thread help you?

    Give it a or
    this problem started after i changed my plan a year back and my IP changed from 59.x.x.x to 117.x.x.x


    While "googling" for a solution to your requirement came across this website
    and gave the link for future use. can be "SAFELY IGNORED!"
    Para two:
    (a)
    Mention your modem model/make/number. A Fw upgrade can be tried.)
    (b)

    iF you uncheck ADSL2 + box and recheck your stats, may be the frequency of
    disconnections will be reduced.. Dynamic IP address allotted by BSNL is like a Hotel say "BSNL"
    allotting different rooms to you on each visit.. But overall if the service is POOR , how
    record of changes of dynamic IP will help the Management ???

    (c).
    You can also try changing DNS to google 8.8.8.8 and Open dns 208.67.220.220
    Or if interested select the best DNS for your connection . ( application "Namebench")
    BSNL Other DNS
    218.248.240.24

    218.248.240.135
    218.248.240.139

    218.248.240.180
    218.248.240.181
    218.248.240.208

    218.248.255.147
    218.248.255.162
    All Delhi NIB.

    61.1.96.69
    61.1.96.71
    Calcutta NIB.
    d)
    You can also try tcp/ip optimizer from speedguide.net

    Feedback on (a) (c) and (d) please.
    Last edited by essbebe; November 9th, 2011 at 05:52 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. TATA INDICOM BROADBAND AREA WISE IP ADDRESS, DNS & HUB ADDRESs
    By akash_patil25 in forum Tata Indicom Broadband
    Replies: 6
    Last Post: November 12th, 2011, 03:16 PM
  2. How to know the current plan from dataone.in ?
    By broadband_user in forum BSNL Broadband
    Replies: 5
    Last Post: May 21st, 2010, 07:05 PM
  3. Current plan
    By jssrk in forum BSNL Broadband
    Replies: 3
    Last Post: December 25th, 2009, 08:47 PM
  4. Eddy Current Tubes
    By chromaniac in forum Etcetera
    Replies: 0
    Last Post: April 29th, 2009, 10:52 AM
  5. What's your current MTU?
    By priyoban in forum Sify Broadband
    Replies: 10
    Last Post: April 25th, 2006, 04:23 PM

Tags for this Thread

Posting Permissions

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