Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I am running Jboss server 4.2.3.GA on my machine , and I am able to access the port locally ( eg: http://localhost:8080/ ) and is working fine with all my JSP Servelet application . But here the issue is , if I try to access the port from outside ( eg: http://192.168.xxx.xxx:8080 ) , I am not able to get the port number. I tried enabling the HTTP port 80 , but nothing happend .
I am using
Fedora 10
Kernel 2.6.27.9-159.fc10.x86_64 ( 64 bit )
Gnome 2.24.2
Is that the correct ip address of the jboss server?
can you ping the address?
What ports does nmap show open on the server?
can you telnet to the port on the server?
is iptables being used on the server?
is the jboss server blocking access?
telnet 192.168.xxx.xxx:8080
telnet: 192.168.xxx.xxx:8080: Name or service not known
192.168.xxx.xxx:8080: Unknown host
From Windows Machine
C:\>telnet 192.168.xxx.xxx
Connecting To 192.168.xxx.xxx...Could not open connection to the host, on port 23: C
onnect failed
Quote:
What ports does nmap show open on the server?
[root@localhost ~]# nmap 192.168.xxx.xxx
Starting Nmap 4.68 ( http://nmap.org ) at 2009-01-05 23:11 IST
Interesting ports on 192.168.xxx.xxx:
Not shown: 1712 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
6000/tcp open X11
Nmap done: 1 IP address (1 host up) scanned in 13.120 seconds
Ho can i open the port 8080 for http request ?
Quote:
is iptables being used on the server?
is the jboss server blocking access?
I am not sure of these 2 questions , I dont know whether iptable is being used in the JBoss server , how can i check that ?
How to find out whether Jboss server is blocking the access ?
ps -ef|egrep -i 'java|jboss'
this to make sure jboss is running....
netstat -ntalp|grep java
this to see on which port/address is running. should be something like: 0.0.0.0:8080 or some ip address like: 192.168.0.1:8080.
if this doesnt work it means jboss is not running or its running... but somehow weird, you will need to check the config.
Ops, I forgot, if everything is fine... you see the bg process and the 0.0.0.0:8080 or something like that, could be your firewall the issue.
Last edited by robertjinx; 01-05-2009 at 07:27 AM.
Also I forgot, but if you changed it... you need to check netstat if you really have it on other adapters then localhost. If you jboss still runs on 127.0.0.1:8080 doesnt matter the firewall. Make sure that is running like: 0.0.0.0:8080 then think of the firewall.
thats cool ........... thanks ............ i guess its working .......... how about tomcat , weblogic and other servers ... ? how can i make them listen so that it is acceble from out side the machine ............ ?
EDIT : and is it that this will work only with the current ip of the machine ( 192.168.xxx.xxx) and the port ( 8080 ) , or is that other port also might be open ........
How does this work , is it making one port open for any one accessing the network .... ? is there any security risk on this ... ?
For tomcat you have in server.xml a part where you define the port, like port 8080, lets say you will have to add also: address="0.0.0.0", something like that
Hey ... here i tried accesing the JBoss from an out side machine , and it is not working , i tried in the same machine with the IP and it is working , i doubt there is some firewall that is blocking the access .....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.