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 am new to linux and just deployed a java program to run on a linux server. I tried to connect from my windows machine to the linux box with jconsole and got an error.
Code:
Connection Failed: non-JRMP server at remote endpoint
I searched online and found the following suggestion was to run the following:
I am new to linux and just deployed a java program to run on a linux server. I tried to connect from my windows machine to the linux box with jconsole and got an error.
Code:
Connection Failed: non-JRMP server at remote endpoint
I searched online and found the following suggestion was to run the following:
as suggested but still cannot
(Connection failed: retry)/
Also I have tried different ports as well.
Well, as with any question, details help. Things like what version/distro of Linux, how your Windows machine is connecting to the Linux system (internal corporate LAN? Behind a DMZ? Firewall? VPN?), etc.
Chances are if you tried different ports and can't connect to ANY of them, you've got the ports blocked on the Linux system with IPtables/selinux/firewall-of-some-sort. But the first thing to check is obviously; is the program on the Linux box actually RUNNING, and LISTENING?? Connect to it on the local Linux system first, and verify that it's working. From there, you can (as root), run "iptables -L", to see what your iptables rules are.
I am part of a VPN with a firewall so will contact the network admin to find out but others in the office say they havent had any issues connecting to other machines which are located in the same datea center as mine and they are not very helpful.
Ok so I had the admin guy disable the firewall and tried to telnet to that server from my machine and it is stuck and seems like it will timeout. So it is probably just the port right?
I am part of a VPN with a firewall so will contact the network admin to find out but others in the office say they havent had any issues connecting to other machines which are located in the same datea center as mine and they are not very helpful.
Ok so I had the admin guy disable the firewall and tried to telnet to that server from my machine and it is stuck and seems like it will timeout. So it is probably just the port right?
Nope, since what you posted shows that there aren't any firewall rules in place blocking ports. And "connecting" is a nebulous term..connecting HOW, to what service?? Logging in via SSH is different than Telnet, which is different than your Java application.
First things first: as suggested before, log DIRECTLY into the Linux system somehow, and run your application on that system, and make absolutely SURE that the application is running, available, and does answer like you want it to, on the port you want it to. From there, you can go further.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.