LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-15-2009, 05:52 AM   #1
makam.sreekanth
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Rep: Reputation: 0
Not able to connect to machine using name


Hi,

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.
 
Old 01-15-2009, 06:04 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
It is not able to resolve to name most probably. You need to edit hosts file under /etc.
 
Old 01-15-2009, 06:15 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
/etc/hosts

<IP Adress> <MachineName>

For Example:

10.14.236.134 BL987FRT

Now try pinging to the Machine by name and it should be able to connect to the machine
 
Old 01-15-2009, 06:39 AM   #4
makam.sreekanth
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 01-15-2009, 06:58 AM   #5
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
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.
 
Old 01-15-2009, 11:12 PM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 01-16-2009, 03:04 AM   #7
makam.sreekanth
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dovecot imap will not connect from remote machine but will connect local charlesnorman Linux - Server 4 03-28-2019 11:20 AM
how to connect a window machine to linux machine sibi_mangadan Linux - Newbie 5 03-29-2008 01:30 PM
question about iptables (DMZ machine connect to other DMZ machine 's publuic IP) wingmak Linux - Security 1 01-20-2007 04:01 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Not able to connect from Remote Machine. sursujmad Linux - General 3 02-05-2004 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration