Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed weblogic (some Application server)under my Linux box. To open the console, I have to goto "http://<machinename>:7001/console".
If I use "localhost" in place of machine it work fine but if I use machine name it will not work. I tried giving with domain name, IP address. What ever I try the console will not open. In fact explorer gives me an errors saying "connect refused while contacting the box"
Please let me know is anywhere I need to configure so that I can use machine name.
Completely stuck with this, quick answer is most appreciated.
Thanks a lot for both for your quick answers,
I have 2 questions here...
1. After changing hosts file,Do i need to run some command or restart some service. Please help me with steps.
2. I need also to access from different machine. Please give which file to edit for this.
Each client machine needs to know how to contact the other box. It uses the /etc/hosts file to translate from a hostname to the ip address, as mentioned by your_shadow03. This is the /etc/hosts file on each client machine, not the server. Each client machine could theoretically know the host by a different name, but that would get too confusing for me at least.
As far as I remember, you don't have to restart anything to get it to recognize a new host.
Yeah you will have to edit this file on each machine on the network so that they can resolve the names to the corresponding ip addresses. You can have a dns server for this and this can be one time thing for you so quite less tedious. You do not need to restart or reload any service after editing the file.
Thanks for all your help. yes /etc/hosts helped me in resolving this.
The main issue I facing was, I had 2 network interfaces and the machine name is mapped to ip1. but the server was running in ip2. This was the conflict. After changing the hosts file to point the machine name to ip2, everything started working fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.