Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to change IP address of a SuSE 10 machine that is running Tomcat. I need to create a shell script to do this so could not use YaST.

As some sites suggested on my Google search, I edited the files in /etc/sysconfig/network/ifcfg-eth-* to change the IP address. After that, I restarted the network service by calling /etc/init.d/network restart.

The network card restarting just fine. I, then, restarted tomcat web service. However, when I browsed the new IP address using browser, I got an "Request denied" message.

Can anyone please tell me how I could do this?


share|improve this question

migrated from Mar 15 '11 at 23:13

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

Did you change the IP in /etc/hosts? I think tomcat is trying to bind on the old address if you didn't changed /etc/hosts.

share|improve this answer
That is it. The /etc/hosts contains an entry that point to the old IP address. Change that to the new address and restart tomcat. It works. Thank you very much. – Long Ngo Mar 16 '11 at 15:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.