1 2 Previous Next 16 Replies Latest reply on May 19, 2005 6:55 PM by archanazzar

    From Localhost to IP adress

    archanazzar

      Hello,

      I'm a newbie on JBoss and i got the following problem:

      When I go to the following link: http://localhost:8080/
      Then i see the Jboss start page, but when I change the localhost into my IP adress, it stops working. Why is that?

        • 1. Re: From Localhost to IP adress
          dsledge

          Try setting your bind address. You can set it in the jboss_init_suse.sh or the jboss_init_redhat.sh startup scripts. Edit the following lines to set the bound address:

          1) JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c all -b <your ip address>"}

          2) CMD_STOP="$JAVA_HOME/bin/java -classpath $JBOSSCP org.jboss.Shutdown --shutdown -s <your ip address>"

          • 2. Re: From Localhost to IP adress
            archanazzar

            I've made the changes you said and it's still not working. I'm running JBoss on win xp by the way.

            • 3. Re: From Localhost to IP adress
              dsledge

              Check and make sure that your XP firewall is allowing port 8080 through.

              • 4. Re: From Localhost to IP adress
                archanazzar

                I've tried that also, I even deactivated the firewall. Still, it wont work. The funny thing is that two years ago with an older version it did work. And I dont think that I did anything different back in those days.

                • 5. Re: From Localhost to IP adress
                  darranl

                  Is the machine you are using a stand alone machine or are you part of a business network.

                  If it is part of a business network is your web browser configured to use a proxy server? If so is it set to bypass the proxy for local addresses possibly by specifying the IP address range that is local.

                  Also could you elaborate on 'it stops working'.

                  • 6. Re: From Localhost to IP adress
                    archanazzar

                    Im a student behind a stand alone machine. With 'it stops working' I mean that when I try the IP adress instead of the localhost, the jboss starting page doesnt work, instead I get the white screen that says: the page cannot be shown. When I try the localhost afterwards, it's working again.

                    • 7. Re: From Localhost to IP adress
                      dsledge

                      When changing "localhost" to your "ip address" are you keeping the http:// at the beginning of you url. IE requires it and will not work without it. Your url should look like "http://<your ip address>:8080".

                      • 8. Re: From Localhost to IP adress
                        darranl

                        How are you identifying your IP address? Is it a 127.x.x.x address or a real address?

                        Can you ping the address?

                        In a command prompt can you enter the command 'netstat -an' and see what address is used to listen for connections on port 8080.

                        Can you use 'telnet ADDRESS 8080' to see if you get a connection?

                        • 9. Re: From Localhost to IP adress
                          archanazzar

                          I typed the http:// in front of my ip adress. About the adress, it's the numerical adress, like for example 64.232.21.121. I can ping the adress and there is no information lost. In netstat -an i see that port 8080 has a local adress of 0.0.0.0:8080, an external adress of: 0.0.0.0:0 and the status is: busy with listening. The telnet attempt failed to get a connection with the host on port 8080.

                          So that is probably why it isnt working. How can i make it working?
                          On my machine I got: Windows XP with firewall on (port 8080 open), also have Microsoft anti spyware running on my machine. I dont have antivirus software running on my machine atm. I cant think of other software on my machine that could block my connection.

                          • 10. Re: From Localhost to IP adress
                            dsledge

                            Which version of JBoss are you running?
                            Which configuration are you running (eg: all, default ...)?

                            • 11. Re: From Localhost to IP adress
                              dsledge

                              Your IP address is not being bound by JBoss. If you are using windows then setting the bind address that I showed you earlier will not do anything because the shell scripts don't run on wndows. You will have to set the bind address setting in the run.bat file instead or you might be able to pass it on the command line (eg. run.bat -b <your ip address>). You may also want to try and use the property to set the bind address but it never seems to work for me on linux. -Djboss.bind.address=<your ip address>

                              • 12. Re: From Localhost to IP adress
                                archanazzar

                                I've tried to run jboss with the -b ip in dos prompt, but it's still the same result. It shows the jboss starting page in localhost and not on my ipadress. I'm using JBoss 4.0.2 with the newest JAVA SDK 1.5 with netbeans included. I'm running JBoss on the default. What i noticed now is the following on startup:

                                00:53:46,500 ERROR [JBossCacheManager] JBossCacheService to Tomcat clustering not found
                                00:53:46,500 ERROR [TomcatDeployer] Failed to setup clustering, clustering disabled

                                Could that be of any influence?

                                • 13. Re: From Localhost to IP adress
                                  raluri

                                  Hi

                                  You have to use : http://127.0.0.:8080. Not your ip address. 127.0.0.0 is the localhost address.

                                  Regards
                                  Raji

                                  • 14. Re: From Localhost to IP adress
                                    archanazzar

                                    The 127.0.0.0 ip adress doesnt work either. Also I would like to say that I had this working 1 or 2 years ago. I could be somewhere else and go to my internet page. It would work then and I could register and login etc... But back then I didnt have to install anything in order to get it to work. Thats why it's so weird that it isnt working now.

                                    1 2 Previous Next