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

This is a discussion on Get external (public) IP from my Linksys router within the Java forums in Programming Languages category; 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?...

Go Back   ObjectMix Forum > Programming Languages > Java

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 02-02-2005, 06:57 PM
Yogi_Bear_79
Guest
 
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?


Reply With Quote
  #2  
Old 02-02-2005, 10:20 PM
dar7yl
Guest
 
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?
>
>



Reply With Quote
  #3  
Old 02-03-2005, 12:03 PM
Randolf Richardson
Guest
 
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 With Quote
Reply


Thread Tools

Similar Threads

Thread Thread Starter Forum Replies Last Post
Re: Script to disconnect Linksys WRT54G wireless router on Windows Wilson Perl 53 01-17-2008 12:14 PM
Is there a way to get your external IP addy, (outside router) w/o connecting to some website? Milfred basic.visual 0 06-30-2005 08:21 AM
Win2k ftp, linksys nat router & IE David Lewis Inetserver 9 01-28-2005 03:40 PM
Installation issues with linksys router Tom Richards DOTNET 1 11-09-2004 05:40 PM
email problems since installing a linksys befsx41 router Grojohn Hardware 0 05-18-2004 10:21 PM


All times are GMT -5. The time now is 06:55 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.