Thread View: aus.computers.java
2 messages
2 total messages
Started by Aaron Fennell
Wed, 24 May 2000 00:00
cached info that InetAddress stores?
Author: Aaron Fennell
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
11 lines
1262 bytes
1262 bytes
When I use InetAddress.getAllByName(hostName) to get a list of IP addresses, the data is cached. Subsequent calls to this method always return the same data. However the host addresses sometimes changes and I want to detect this. This is for use on a local machine (not for querying arbitrary machines on the net). The reason is to detect an IP from an ISP might be added since the VM started. If I restart the VM all the IP's are listed. Is there a way to clear the cached info that InetAddress stores? Is there a better way for me to check the active IP's on a local machine?
Re: cached info that InetAddress stores?
Author: Paul Murray
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
21 lines
1601 bytes
1601 bytes
"Aaron Fennell" <aaronf@breezesoftware.com.au> wrote in message news:uxMW4.3498$c5.4659@newsfeeds.bigpond.com... > When I use InetAddress.getAllByName(hostName) to get a list of IP addresses, > the data is cached. Subsequent calls to this method always return the same > data. However the host addresses sometimes changes and I want to detect > this. This is for use on a local machine (not for querying arbitrary > machines on the net). > > The reason is to detect an IP from an ISP might be added since the VM > started. If I restart the VM all the IP's are listed. > > Is there a way to clear the cached info that InetAddress stores? Is there a > better way for me to check the active IP's on a local machine? Is this a bug in the API? -- -------------------------------------------------------------- http://www.users.bigpond.com/pmurray ICQ: 26066755
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads