How to get router's IP Address programmatically?

While on my computer, behind the router Verizon router, I need to know my the router's IP address, so I can ssh into my box from remote hosts.
When I subscribed to cable, and had a Linksys router as my main gateway at 192.168.1.1, I could log into it programmatically (using Perl LWP) and parse out the WAN IP address.
But with the ridiculous Verizon setup, their login screen is jam-packed with silly Javascript that changes the number of characters on the screen as you type, etc (all of which have been covered in these forums), and I cannot figure out what the heck it is doing.  Logging into the router manually works fine.  But I need to be able to do so programmatically.
(Or is there some other way to obtain my router's WAN IP address from my local system?)
Any suggestions?
Thanks,
-Mike
Solved!
Go to Solution.

Couldn't you just setup a dynamic dns name from dyndns.org (or one of the other providers) and set that up in the router's dynamic dns setup.  That way you could always use a FQDN instead of an ip address.  The router will also keey dyndns.org updated with you curring WAN ipaddress.
If you want to do something progamatically you could access a website like http://www.whatsmyip.org/ and parse its response.

Similar Messages

  • HT5312 I forgot the Security question in my email account, How to get a rescue email address?.

    I forgot the Security question in my email account, How to get a rescue email address?.

    You can go to the phone number for your country from http://support.apple.com/kb/HE57 and ask to speak with Account Security, or you can go to the ExpressLane at https://expresslane.apple.com and then iTunes, then iTunes Store, then Password and Security Questions and fill out the form.

  • How to get Ship to Location Address?

    Hi Guys,
                 Can anybody tell me how to get Ship To Location Addresses?
              Bill to Party Addresses also?
    Thanks in Advance,
    Gopi.

    for bill-to-part check table kna1.
    select name1 land1 ... from kna1 into corresponding fields of wa where kunnr = <bill-to-party-no>.
    endselect.
    do the same for ship-to
    plz reward points if dis helps
    Message was edited by:
            user_15

  • WebGUI: How to get the users IP-address

    Hello.
    I have to develop a simple web-application, that will enable users to reset their forgotten passwords or to unlock themselves, if they are locked because of too many failed login-attempts.
    As you can imagine, this application must not require a login. For security reasons any action has to be logged.
    The username can not be used for logging-purposes, as the application is executed using a default-user defined in transaction SICF. That's why the IP-address of the user's pc has to be written into the log-table.
    My problem is, that i do not know how to get it. I have read many articles on help.sap.com, searched in the sap notes, used Google and tried to find usefull functions in our SAP-system, but after two days it still does not work and i do'nt know, what else to try.
    At the moment i am able to read the name of the client-pc with my test-coding.
      DATA:    lv_webgui TYPE xfeld.
      STATICS: lv_computer_name TYPE string,
               lv_username TYPE string.
      CLASS: cl_gui_frontend_services DEFINITION LOAD.
      lv_webgui = cl_gui_frontend_services=>www_active.
      IF lv_webgui EQ gc_true.
        " Begin of experimental coding #1
        CALL METHOD cl_gui_frontend_services=>get_computer_name
          CHANGING
            computer_name = lv_computer_name.
        " End of experimental coding #1
        " Begin of experimental coding #2
        CALL FUNCTION 'ITS_ENV_GET_VARIABLE'
          EXPORTING
            variable = 'COMPUTERNAME'
          CHANGING
            value = lv_computer_name.
        " End of experimental coding #2
        MESSAGE s000(38) WITH lv_computer_name.
      ENDIF.
    The problem is, that the Internet Explorer 7 (version: 7.0.5730.13CO) shows a warning before the scripts, generated by the ITS, are executed on the client. If the user clicks "abort", the scripts are not executed and the name of the client-pc will not be returned to the server (experimental coding #1 returns the value 'localhost', experimental coding #2 returns an empty string).
    That's why the experimental coding is quite useless, because the user is able to avoid it's execution.
    In theory i could use experimental coding #2 and stop the execution of the program if an empty string is returned but some users in our company have administrator-privileges and so they can change environment-variables at will. So i am afraid, that this procedure is not an option.
    I am quite sure, that there must be a way to read the IP-address directly from the ITS without using the functions in my experimental coding, but i have no clue how this could be done.
    Any suggestions would be highly appreciated.
    As i do'nt know how to determine the version of our ITS, i have to leave this information out for the moment. If anyone needs this information it would be very kind, if he or she could tell me how to get the required information.
    EDIT: As we are using SAP ECC 6.0 and Services are maintained via transaction SICF, it should be ITS 6.40.
    Regards
    Jörg Neumann
    Edited by: Jörg Neumann on Oct 16, 2009 1:27 PM

    Hello Wolfgang.
    Thanks for your reply.
    I can imagine, that the application as described above seems to be very insecure, but the description is not complete - i left some parts out, as they were not relevant for my problem.
    1.) The application can only be reached from our intranet.
    2.) Unlocking / Resetting password can be done three times per day, which limits the number of attemps for cracking a password to a total of 20 per day.
    3.) The owner of the account will receive an email if the acount was changed by the application. So if somebody tries to crack the password, the owner of the account will get a total
    20 3 mails per day - which should make him/her at least a litte suspicious. 
    I know, that the logged data is quite worthless, as computername and username are read using clientside-scripting and there could be a proxy between the client and the server, but this is exaclty, what i have to develop.
    I will keep the logging-problem in mind and talk about it in the next meeting, though i am quite sure, that it wo'nt change anything.
    Regards Jörg Neumann
    Edited by: Jörg Neumann on Oct 19, 2009 4:57 PM

  • How to get rid of duplicate addresses all over the place?

    Duplicate addresses appears all over the places: on my mac (in the mail program) and in my ios devices.
    I suspect that it occurs during some synchronisation activities but how to get rid of this once and for all?
    Thanks for your help. It helps also if some tell me that I am not alone in that kind of trouble

    iCloud- Resolving duplicate Contacts after setting up iCloud Contacts

  • How To Get Network Adapters & Gateway Address

    Hi,
    I need to get and alter the local PC's IP address and Gateway address.
    I know how to get the IP address using InetAddress, but I have a few questions.
    1) Is is possible in Java to change the local PC's IP address?
    2) Is it possible and if so how do I obtain the local PC's Gateway IP address
    3) Is there a way of showing all the Network adapters within a PC?
    This will be used on Windows XP operating system if ths makes any difference.
    Many Thanks

    2/ Hello I've submitted a method to retrieve the gateway ip on [http://forum.java.sun.com/thread.jspa?threadID=5289135|http://forum.java.sun.com/thread.jspa?threadID=5289135] , it does work under windows and linux (I haven't tested on other os yet)

  • Anyone figured out how to get rid of the address bar tooltips??

    I asked this about a year ago. One guy responded with some editing tips using the developer tools, but did not mention how to get to the files to edit them (he was recommending using Interface Builder). I cannot understand why there isn't a preference setting to disable all tooltips in Safari. I find them to be extremely annoying & want them to go away. So, if anyone knows how to make them disappear, your help would be greatly appreciated. Thanks in advance.
    **NOTE** I am not referring to the information popus that are part of some web pages (although it would be nice to eliminate those as well). I am referring to the little yellow rectangles that pop up when you hover over things like the stop button, refresh button, address bar, etc. I do not need to be told what those buttons or areas do, so I want this annoyance gone. **NOTE**

    Have a look at this macosxhints Forum thread. Otherwise, I haven't seen a way to remove these annoying pop-ups. I've sent feedback to Apple in the past. Perhaps you might want to add your voice via this link.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • How to get location for an address using MKMapKit framework?

    Hi
    Can anybody help me, How can I get location/coordinate from address using MKMapKit framework?
    Thanks

    You have your answer iPhone warranty is NOT international it only covers
    the county of Purchase in your case the US
    You will have to take it back to an Apple Store in the US

  • How to get an iCloud email address?

    I want to get an iCloud email address (@icloud.com) for several reasons, among them:
    To streamline my iCloud account access so only that email is associated with iCloud & its services.
    To provide email between Apple (e.g. Apple Support) and myself
    To be able to use Notes
    Currently, I am using the same Yahoo email address for both iCloud and iTunes.
    However, I wonder if I can give those up and replace them by the iCloud.com email address?
    Some details: I got a new-to-me iPhone a few weeks ago, which was reset, and so the only apps
    on it are the default iPhone apps. I have not added any apps.Therefore, I don't mind having to do
    another reset as long as I save the few photos and some phone number contacts to a Vcard.
    Could I create a new iCloud email address and use that exclusively after reseting the iPhone?
    I could restore the contacts and photos from the computer.

    JacobianWife wrote:
    What if I were to wipe the phone clean, and start from scratch, never using my current Apple ID at all, but then activate iCloud to get an @icloud.com email address?
    Yes, you can do that - please see imp68's post here:
    Re: I wish to transfer my Apple ID to a new iCloud account
    If you do this, it's vital that you create a 'rescue address' which is a non-Apple address, because if you don't and something goes wrong with the account - for example if you forget your password - Apple can only contact you at the iCloud address which youy can't access.

  • How to get Vendor number form Address number

    Hi all
    I need help in getting vendor number using address number. I need best performance in this process.
    I have tried
    select single lifnr
      from LFA1
    where adrnr = address
    put this is not good in performance.
    Do any one know better way?

    Hi Salam
      As your requirement is
    <b>address > ????? > LFA1</b>
    Dieter has provided ADRV to replace "?????" in the above.
    so it is address > ADRV > LFA1.
    Substitute <b>address number</b> for field ADDRNUMBER, <b>'LFA1'</b> for field APPL_TABLE in table ADRV to check the result in field APPL_KEY which is combination of key fields in table LFA1 i.e MANDT and LIFNR.
      Please award points to Dieter for this wonderful tip.
      Thanks for the tip Dieter.
    Kind Regards
    Eswar

  • How to get the vm ip address in scvmm 2012

    Hi,
    I want to get the vm ip address in scvmm 2012, who can help me?

    I have seen lots of people ask this because they can see IP addresses in other Virtualization Consoles, Unfortunately SCVMM doesn't show IP address of the VMs on the console but you can use below script to populate Custom1 property of VMs with IP address
    and make Custom1 Column visible (manually) in SCVMM Console... HTH
    param ( $VMMServer = 'localhost')
    $CustomProp = Get-SCCustomProperty -Name Custom1
    $VMs = get-SCVirtualMachine -VMMServer $VMMServer
    foreach ($VM in $VMs)
     $NetAdp = get-SCVirtualNetworkAdapter -VM $VM.name
     if ($NetAdp.IPv4Addresses)
     [String[]]$str = $NetAdp.IPv4Addresses
     Set-SCCustomPropertyValue -CustomProperty $CustomProp -InputObject $VM -Value "$str"
    Disclaimer: The sample script is provided AS IS without warranty of any kind.

  • How to get routing of a material and change routing status ?

    Hello,
    In CA03, We can display the routing list of a material. Is there any function that we can get routing list of a material ? And is there any function that we can change the routing status ( Routing header) ?
    Thank in advance

    Try FM CARO_ROUTING_READ

  • How to get the JDI dt_socket address?

    If I start the JVM with VM params -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y. The dt_socket address will be assigned by the JVM automatically, and is printed on the console like "Listening for transport dt_socket at address: 2055".
    My question is if there is a way or if it is possible to find out this address programmatically in my Java program?

    One thing that should help (in the future anyway) is a new JDI Connector in Mustang which attaches to a debuggee by pid rather than transport address. This means you can start the debuggee with something like this:
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=y
    and the debuggee will bind to some random access. Then you attach the debugger by process-id rather than transport address. Here's an example:
    jdb -connect com.sun.jdi.ProcessAttach:pid=1234
    If you use NetBeans then this Connector will appear automatically in the list of Connectors tht the "Attach Debugger" menu option shows (not sure about other IDEs).

  • How to get a new email address

    Hi. Can you tell me how to make a new email address? I think I mean alias. When I had my .mac account I could make up new @mac.com addresses (which I think just funneled mail on to my "real" @mac.com address
    I have had a look around in the new mobileme and I can't seem to find anywhere to do it. I'm really hoping it hasn't disappeared!!!!

    Please see http://homepage.mac.com/rfwilmut/notes/mobileme.html#alias

  • How to get back my email address

    I had Verizon at my house and purchased another house before the old one sold.  I talked to customer service when setting up the service at my new house if I would be able to get my older email transferred over to the new account once the old house sold and was told yes.  So when the time came and I was ready to get my old email address moved over to my new account I was told that wasn't a possibility (seriously?).  They suggested I contact tech support which was a horrible experience as well.  They new nothing and even at one point insisted on signing into my computer because I must be doing something wrong when trying to set it up.  Then a horrible manager came on and told me it couldn't be done and to stop insisting that it happen (yes, and after wasting an hour of my time trying to understand what they were saying, they had no clue and there was no escalation).  There was also a place on your site I was directed to that was supposed to magically make this work but it didn't and after lots of being redirected I gave up.
    So is there anybody there who can help me?  I have some accounts that are still pointing to the old account and I can't change them without being able to access my older email account for verification.

    Hi Wendysi,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

Maybe you are looking for