Get external (public) IP from my Linksys router - Java

This is a discussion on Get external (public) IP from my Linksys router - Java ; I've been searching for a way to programtically get my public IP from my router. After much research th eonly thing I came up with was going to a site like privacy.net and returning the value it reads. What I'd ...

+ Reply to Thread
Results 1 to 3 of 3

Get external (public) IP from my Linksys router

  1. Default Get external (public) IP from my Linksys router

    I've been searching for a way to programtically get my public IP from my
    router. After much research th eonly thing I came up with was going to a
    site like privacy.net and returning the value it reads. What I'd like to do
    is compile this into my .chm I give my remote users. So ideally they would
    have a button to press that goes to the web site reads the site and returns
    the ip to a text box.

    I'd like to do it without the user actually seeing IE open the web site. Any
    leads?



  2. Default Re: Get external (public) IP from my Linksys router

    try www.whatismyip.com

    "Yogi_Bear_79" <IThankU@spamfree.com> wrote in message
    news:jbmdnbnqeKVO9ZzfRVn-oQ@comcast.com...
    > I've been searching for a way to programtically get my public IP from my
    > router. After much research th eonly thing I came up with was going to a
    > site like privacy.net and returning the value it reads. What I'd like to
    > do
    > is compile this into my .chm I give my remote users. So ideally they would
    > have a button to press that goes to the web site reads the site and
    > returns
    > the ip to a text box.
    >
    > I'd like to do it without the user actually seeing IE open the web site.
    > Any
    > leads?
    >
    >




  3. Default Re: Get external (public) IP from my Linksys router

    ""Yogi_Bear_79" <IThankU@spamfree.com>" wrote in comp.lang.java:

    > I've been searching for a way to programtically get my public IP from my
    > router. After much research th eonly thing I came up with was going to a
    > site like privacy.net and returning the value it reads. What I'd like
    > to do is compile this into my .chm I give my remote users. So ideally
    > they would have a button to press that goes to the web site reads the
    > site and returns the ip to a text box.
    >
    > I'd like to do it without the user actually seeing IE open the web site.
    > Any leads?


    For starters, don't use IE. Opera and Mozilla are both excellent
    alternatives that include many useful features without all the security risks
    (have you noticed how many security updates Microsoft has released for
    Internet Explorer over the years?).

    I'll assume you're writing Java code (otherwise why else would you post
    your question here?), and that your .CHM has a Java Applet embedded or is
    causing a Java Application or Java Servlet to start which returns the IP as a
    result.

    The easy way to read a web page is to use the Java HTTP Component, for
    which some simple documentation can be found here:

    Java HTTP Component
    http://www.jscape.com/inetfactory/http.html

    For more information about HTTP (which I assume you don't need, but
    perhaps other readers may find it helpful), visit this web page:

    CGI tutor
    http://www.mindprod.com/projects/cgitutor.html

    --
    Randolf Richardson, pro-active spam fighter - rr@8x.ca
    Vancouver, British Columbia, Canada

    Sending eMail to other SMTP servers is a privilege.

+ Reply to Thread

Similar Threads

  1. Replies: 53
    Last Post: 01-17-2008, 12:14 PM
  2. Replies: 0
    Last Post: 06-30-2005, 08:21 AM
  3. Win2k ftp, linksys nat router & IE
    By Application Development in forum Inetserver
    Replies: 9
    Last Post: 01-28-2005, 03:40 PM
  4. Installation issues with linksys router
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 11-09-2004, 05:40 PM
  5. email problems since installing a linksys befsx41 router
    By Application Development in forum Hardware
    Replies: 0
    Last Post: 05-18-2004, 10:21 PM