Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
What I want to do is to monitor a java application remotely. The java application running via a wrapper. So I followed this link http://stackoverflow.com/questions/8...jmx-connection where it talks possible the hostname issue. So this is what I want to do and stuck with the hostname thing.
I know my ip address that is not a problem at all. The issue is the hostname. What will this hostname be applied to? So any one can just put the host name instead of the ip will be able to connect to the machine?
That's kind of how microsofts netbeau(sp?) works. Any computers with the same workgroup name can mount each others shares and swap files, without the other person even knowing it.
/etc/hostname is what gets modified on some systems by an interface named hostname.
$ man hostname
If it differs for your distro, the man page probably hints as to what it is called on your system under FILES towards the bottom of the man page. Man as in manual. The /etc/hosts file is more of a localized DNS lookup table. But not everything uses it, so it depends on "what" you are trying to do.
Did you see the edit in my previous post? The page I linked to shows some example. You should use /etc/sysconfig/network instead of /etc/hostname. You can give whatever name you want to your system. The only important thing is that it is the same in /etc/hosts (the last line, which you need to add) and in /etc/sysconfig/network.
I'm not familiar with the jvm tool you're referencing. But is the routing okay? Can you ping one and it can ping you. Which are icmp packets.
# route -n
# netstat -r
If you can't do that much then there probably is a firewall in the way. Or other issues if you get stuff like host unreachable. You really can't work on getting the jvm working if the basic networks are not connected. Honestly I don't see why hostname would be the problem. Unless you have multiple instance running in virtualization and need to isolate only one of them. From the linked to content you seem to referencing the tool by IP:PORT.
On rare occassion when my ISP DNS's (and/or others) suck, I have had to put the IP and hostname of the external site in my local hosts file. The IP alone is not sufficient if there are multiple sites hosted at that same IP address. Which is common in webhosting, without paying extra. Although this approach is more of a hack than the way you "should" do things. (In a perfect world my ISPs dns servers wouldn't suck).