How can I reach Amazon Linux in Hyper-V - linux

I hava Amazon Linux 2 running in a Hyper-V Virtual Machine, I have Wildfly running on it, so when I put
curl http://localhost:8080
It returns an html page as plain text, which is expected, now I want to reach the wildfly instance (running on 8080 port) but when I try to reach it through a browser in windows host, it refuses to connect.
is there a configuration inside Amazon Linux in order to be reachable by other browsers?

I was trying to reach wildfly21 without modifiying the following parameters in standalone.xml:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
</interfaces>
Those are the values I was looking for, 0.0.0.0 to make wildfly reachable for anyone, also you can make reachable the console too.
Amazon Linux doesn't have a Firewall or something like that, the internal IP address works fine since it's a VM.
For the ssh login this worked for me:
nano /etc/ssh/sshd_config
PasswordAuthentication yes
service sshd restart

Related

Cannot access eclipse orion server from local machine using local IP

I have been given a centos server to lauch eclipse orion code editor. I installed eclipse orion as per the instruction on https://wiki.eclipse.org/Orion/How_Tos/Install_Orion_on_Localhost (steps for linux using jetty server). It works fine on centos browser. The centos os is running on 198.168.1.226. So that I can access the following urls on web browser of centos.
198.168.1.226:8080
localhost:8080
127.0.0.1:8080
0.0.0.0:8080
But when I tried to access the 198.168.1.226:8080 from other local machines on local network, that is not accessible. I searched the StackOverflow Questions like how to make jetty server accessible from LAN? and Unable to access jetty server with local IP address but both are useless for me. How can I fix this situation? Can I fix it editing the code on orion.ini file or need to deal with configuration file or something else?
I have also tried the orion for windows computer but it worked itself for accessing the orion system for any other computer in local network. But I am surprised to face it on centos using the jetty server for setting up eclipse-orion system .
First of all check that have you allowed specific port (8080) from eclispse.
add rule with that port no. in centos iptables as below:-
iptables -A INPUT -p tcp --dport 8080 (adjust according your port no.) -j ACCEPT

Accessing remote linux server's localhost:8080 from windows desktop

I am a complete beginner with Linux. I have ssh access (I think that's what it is) to a linux server. I have a program called SpagoBI installed on the server, and it needs to be accessed through localhost:8080 in a browser. I have changed the xml file that points to localhost to the ip of the server but I still can't access it. Does anyone have any suggestions on how to access the localhost through the ip?
With SpagoBI configured to answer on localhost (the default), you can use Putty on Windows create an SSH tunnel from your local system to the SpagoBI system. If you were to redirect local 8080 (of your local system) to 8080 of the SpagoBI system, then you could access the remote SpagoBI server like this http://localhost:8080/SpagoBI while the SSH tunnel is up.
Now... to configure the SpagoBI server correctly so that it answers on a specific FQDNS... you'll need to modify the Tomcat server.xml
Go to the Tomcat config directory and edit server.xml. These are two entries you'll need to modify. Then restart tomcat and try to access SpagoBI using the FQDNS and URL.
<Environment name="spagobi_service_url" type="java.lang.String" value="http://spagobi.example.com:8080/SpagoBI"/>
<Environment name="spagobi_host_url" type="java.lang.String" value="http://spagobi.example.com:8080"/>
After restart, try accessing SpagoBI like http://spagobi.example.com:8080/SpagoBI
I hope I understood. Do you write "localhost:8080" on your remote windows machine? If so, you should write the SpagoBI's address instead of localhost.
If you already doing so, I see on SpagoBI troubleshooting that you should try with http://serverIP:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage&NEW_SESSION=TRUE.
I would check that 8080 port is open on firewall anyway.
If you have access to the GUI on server I would try to open in a browser that http://localhost:8080 is actually working at least locally.
Check whether the spagoBI is working in linux server or not. If not follow these steps: http://www.2daygeek.com/spagobi-5-0-release-notes-installation-steps/
If it's working in linux server, it can be opened in you windows system with the url:http://ipaddress of linux server:portnumber/SpagoBI.

How to check jboss running in redhat environment?

I have installed jboss-eap-6.2.0 in redhat environment and started the server.But i'm not able to access the home page via http://<>:8080 .Here i have to access home using ip address or name like http://<>:8080 its getting time out. So i would like to know what is the problem here and why not to see the jboss home here ?
1.Is there any way to check the server running in putty command line ?
2.Able to install the software connecting via ip but same ip is not allowing to access jboss page .So is firewall blocking the port 8080 ?
Please advise
Open the standalone.xml file from the JBOSS_HOME/standalone/configuration directory.
Look for all the texts jboss.bind.address in there and change the ip with the server's IP address so that you can access it from your local pc.
For example
${jboss.bind.address:192.168.1.68}
${jboss.bind.address.management:192.168.1.68}
... and so on...
Also, you can look for the loop back ip address(127.0.0.1) in the xml file as well and replace it.
Even i faced same issue wheni installed jboss7 on centos machine.i found that 8080 port was being used by some other app,thus disabling jboss7 to use that port.
-you can
telnet localhost 8080 (or) ps -ef|grep java
to check if jboss is running
if its running properly and you still not able to connect through your browser
use nmap to check services running on that port
you can edit your port configuration at
jboss/standalone/configuration/standalone.xml
run jboss again
You need to set the value of the default interface in socket-binding as well in your standalone.xml.

jBoss7 no remote access

i setup a jboss7 server including the standalon.xml for remote access on a debian machine.
But I cant get external remote access.
This is my interface part of the standalone.xml:
<interfaces>
<interface name="management">
<inet-address value="192.168.3.182"/>
</interface>
<interface name="public">
<inet-address value="192.168.3.182"/>
</interface>
</interfaces>
I also tried:
<interfaces>
<interface name="management">
<inet-address value="127.0.0.1"/>
</interface>
<interface name="public">
<any-ipv4-address/>
</interface>
</interfaces>
I tried a lot of possibilities to setting up the standalone.xml but I must forgot something.
I see the jboss7 homepage when I type the ip address in my browser but Im note able to connect with my java test client on the remote port(4447).
The test client works if the client runs local on the machine.
Do you have an idea?
Edit: telnet 192.168.3.182 4447 gives me the ip back with a blink cursor, so i guess waiting for response additional i see a log entry in my jboss server log -> ) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1728579688
I would check if the port is listening with the following command under linux "netstat -tulpn | grep -i 4447"
Good luck,
that "Received an invalid message length of 1728579688" error indicates that jboss is listening on the port but that the connector is not using the right kind of protocol.
of course, if you are connecting with telnet then you would expect to see that error since telnet is not a JMX client.
JBoss uses JBoss Remoting for JMX connections. So if you are using an external client, you need to make sure the JBoss Remoting libraries are available to your client.
This is a good description of the issue using VisualVM as the client:
http://blog.akquinet.de/2012/11/01/connecting-visualvm-with-a-remote-jboss-as-7-eap6-jvm-process/

Cannot View JBOSS 6 using IP address:port on browser after starting Jboss on HP-ux

I unzipped Jboss application server 6 on hp-ux connecting remotely and started the application server using sh run.sh and it started without error in both the buildup of the starting up as well as in the server.log.
But unfortunately, I cannot view the started application server in the browser using: e.g.
192,168.15.10:8080.
Anyone out there who can help?
Thank you in advanced
By default Jboss 6 binds its service to 127.0.0.1 only. You will need add "-b 0.0.0.0" to the startup script, something like run.bat -b 0.0.0.0.
I'm assuming you're starting JBossAS using the jboss-as-standalone.sh script.
I recently had the same problem. JBoss assumes that accessing the server admin console from other machine is dangerous, so it's bindings are set by default to localhost or 127.0.0.1 at /standalone/configuration/standalone.xml.
Change the 3 interfaces elements to 0.0.0.0 so it can listen requests from all interfaces.
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
</interface>
</interfaces>
It should work the same way if you're not running JBoss in standalone mode, so edit the /domain/configuration/domain.xml file.

Resources