Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have jboss 5.0 running a web application I am developing. I am able to hit the pages using localhost:8080 but not my external IP address.. How can i hit with my ip???

share|improve this question

migrated from stackoverflow.com Aug 15 '12 at 13:40

This question came from our site for professional and enthusiast programmers.

    
progrium.com/localtunnel ? –  RC. Aug 15 '12 at 6:18
    
@RC not this.. I am trying to hit the page from another system connected in my LAN specifically giving the ip instead of localhost ex:10.9X.XX.XX:8080.. –  coderman Aug 15 '12 at 6:21
    
lorenzod8n.wordpress.com/category/jboss might help. (Note: this question is more suited for serverfault) –  RC. Aug 15 '12 at 6:23
add comment

2 Answers 2

Your router default firewall settings probably doesnt allow tcp/udp connections outside of world to access your local network via port 80 or 8080. You need to set up 'Port Forwarding' on your modem/router. Simply google your 'modem model' port forwarding. You need to have admin privileges on your modem and if more than one device has connected to your modem/router then you need to make sure you forward your port to correct DHCP address .If your DHCP address dynamically assigned you need to make sure you always get same DHCP address per connection. In this case you need to use your mac address for creating static dhcp. here is a one example. Also I would like to inform you opening your ports outside means anyone can access your ip via this Port which is not secure. I would use a port more than 40000 for the outside then forward to 8080 of local network and access via myIp:40000.

share|improve this answer
    
i am tryin to hit a jboss server in a machine under the same LAN... Still its not getting connected?? –  coderman Aug 15 '12 at 6:47
    
@coderman no this answer not the for local network, I think Sai Ye Yan Naing Aye suggestion is the right answer. –  HRgiger Aug 15 '12 at 7:09
add comment

You have to start the server with additional parameter command with ./run.sh -b 0.0.0.0 or run.bat -b 0.0.0.0.

share|improve this answer
    
Ye i tried run.bat -b 0.0.0.0 against D:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\bin it is getting started but some deployment errors as well. Where can i see the logs for this??? –  coderman Aug 15 '12 at 6:44
    
@coderman see your jBoss log at D:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\log\.. directroy –  Sai Ye Yan Naing Aye Aug 15 '12 at 6:48
    
Ye I am seeing this 2012-08-15 12:07:01,428 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/profile]] (main) Error configuring application listener of class org.jboss.resteasy.plugins.spring.SpringContextLoaderListener java.lang.NoClassDefFoundError: org/springframework/web/context/ContextLoaderListener but the same error doesnt come up when i start the server via eclipse... Any suggestion?? –  coderman Aug 15 '12 at 7:01
    
BTW i am running a new instance of server not the default –  coderman Aug 15 '12 at 7:01
    
sounds like classpath/build problem –  HRgiger Aug 15 '12 at 7:08
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.