Results 1 to 10 of 10
Thread: ip change
- 11-04-2008, 09:56 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 5
- Rep Power
- 0
- 11-04-2008, 02:26 PM #2
What do you mean by IP?
How/when does an IP change?
- 11-04-2008, 04:00 PM #3
Member
- Join Date
- Nov 2008
- Posts
- 5
- Rep Power
- 0
I mean IP adress sorry, i didn't explane that at first.
my Internet provider is changing IP addresses from time to time so we couldn't establish server over ADSL :).
- 11-04-2008, 05:29 PM #4
The InetAddress class might help you get your IP address.
- 11-05-2008, 10:34 AM #5
Member
- Join Date
- Nov 2008
- Posts
- 5
- Rep Power
- 0
Well thx for trying, but InetAdress class is not what i need, actually my computer is behind NAT/Router so it has 192.168.x.x address and i need Router IP address. I now how to get that address, what i don't know is how to make application sensitive to it...
I guess what i want is one threat that is "sniffing" IP address of the router constantly, and another threat with main program. What i don't know is: can I make threat with main program listen to response from IP checking threat, without having to check shared variable from time to time...
I guess it is not so much network question any more, but... :)
- 11-05-2008, 01:59 PM #6
You could use a callback routine that the IP checking thread would call when it found a change. What would be the main program's response when the IP address changed?can I make thread with main program listen to response from IP checking thread, without having to check shared variable
- 11-05-2008, 02:26 PM #7
Member
- Join Date
- Nov 2008
- Location
- USA
- Posts
- 1
- Rep Power
- 0
final argument against Obama
Do you think that Obama is going to win because the Republicans have such a bad candidate?
Why did John McCain make his final argument against Obama... coal?
That's his closing argument? William Ayers, Rev. Wright, spreading the wealth, Born Alive, meeting dictators without preconditions, etc. all have to take a back seat so that McCain can go to Colorado and New Mexico to talk about coal? Does this more or less explain why he's going to get his clock cleaned Tuesday?
- 11-05-2008, 03:51 PM #8
Member
- Join Date
- Nov 2008
- Posts
- 5
- Rep Power
- 0
the main program would be JXTA peer, and it would need to restart JXTA after IP has changed
- 11-05-2008, 04:01 PM #9
Can that be done by a method, ie the call back?
- 11-05-2008, 07:11 PM #10
Member
- Join Date
- Nov 2008
- Posts
- 5
- Rep Power
- 0
yes it can be done with method, but, i'll need to learn what is callback method, and how is it implemented :). As I understood basicly call back function is function which is passed as a parameter to another function, so the other function can call it. Am i right? BTW as i understood i pass callback function as a reference, but will the call work from threat, especially since my callback would be method in another thread class instance.
Last edited by iiggoorr; 11-05-2008 at 07:20 PM.
Similar Threads
-
How to change JDK?
By mew in forum EclipseReplies: 5Last Post: 05-21-2010, 05:21 AM -
How to change The Font
By kader in forum New To JavaReplies: 2Last Post: 09-15-2008, 04:09 AM -
How ro change the locale of JVM
By ravi.ks007@hotmail.com in forum Advanced JavaReplies: 2Last Post: 12-26-2007, 06:17 AM -
Change my for loop
By javaplus in forum New To JavaReplies: 4Last Post: 12-12-2007, 11:00 AM -
Is it possible to change the '\n' into ' ' ...
By johnny7white in forum New To JavaReplies: 1Last Post: 11-15-2007, 02:32 PM


LinkBack URL
About LinkBacks

Bookmarks