Ryan Madsen

Greenhorn
+ Follow
since Mar 08, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ryan Madsen

Yes, I have..It gets close but not exactly what I am looking for. Thank you anyway.
18 years ago
I see. Do you happen to have any ideas for some search keywords? What should I be looking for in C/C++?

edit: I will be programming for Windows 32 bit
[ October 11, 2005: Message edited by: Ryan Madsen ]
18 years ago
I am trying to add some new features to a simple desktop application. However, I need some API help. Here is what I am trying to do:

When the user clicks on a text on the browser or on the word processor (either using the middle mouse button or a combination of keys and button) I would like to select that text, copy it, pass it to the program, and look up for its definition.

However, I have no idea which classes to look in the API.

For all of you out there that are really buffled by my explanations there is a program called "babylon" that does just that. It registers witht the OS and keeps monitoring the user at all times. You can check it out at: http://www.babylon.com/

BTW, I did some search in the forum found posts that are helpful but not enough to solve the problem.
18 years ago
here is what I am planning to implement:
1. use simple php code to learn my ip, run it on a place on the internet

It should be as simple as this


2. Using the sample code Heratio provided, I will get the ip address from my own web site.
3. Write this on a file
4. Anytime that there is a change of IP address, email the new ip to the predefined address.

Although I am familiar with OOP I am not very familiar with the JAVA APIs so I will definitely be back with more questions.
19 years ago
Horatio's code solved the problem. I will add some more code just in case whatismyip.com 's server is down
19 years ago

Originally posted by Chengwei Lee:
Hi Ryan,

Do you know the host name of your machine? If you do, you can get the IP address of it that is visible to the outside world.


Below is a sample code I've used. I am getting "192.168.2.4" as my ip address. This is my ip address within my home LAN. I want to learn the one that my machines broadcast to the internet. As a said my machines are connected with a belkin router. It is a simple home network.

19 years ago

Originally posted by Venkatraman Kandaswamy:
But I can think of a crazy solution. Form a http request to www.whatismyip.com - get the html response and search for "Your ip is" - and the next string is your ip address. Easy for me to say
Tell us what you discovered..



That is very funny. I have also thought about the same thing. But, I will try that as a last resort. After all this a home-hobby project for me for the sake of learning some more java APIs.
19 years ago
I am planning to write a small utility that will send an email to a predefined address whenever an IP address change takes place.
I am planning to run the program as a monitoring tool at all times and it will check on the IP every so often. I think you get the idea.

Now, when I use the getLocalHost (along with getHostAddress) method of the InetAddress class under the java.net package I can get the IP address of the local machine I am working on. However, I am connected to the Internet through a router and I would like to learn the IP address that I am broadcasting to the INTERNET. I really don't care about my 192.168.2.3 address .

If anybody has any API suggestions I would be very happy. I would also welcome any suggestions regarding to the design of the program.

[ March 09, 2005: Message edited by: Ryan Madsen ]
[ March 09, 2005: Message edited by: Ryan Madsen ]
19 years ago