ip changing using java
I changed the ip of the system using the code " Runtime.getRuntime().exec("ifconfig eth0 192.168.0.04"); ". After this when ifconfig is run from the terminal, i got the new ip. But using InetAddress.getLocalHost(), i am getting the old one. what could be the problem ????
And is there any other way to change the ip of the system in java ????
THANKS IN ADVANCE....
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL