Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Aug 15 '12 at 13:40

This question came from our site for professional and enthusiast programmers. ? – 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 might help. (Note: this question is more suited for serverfault) – RC. Aug 15 '12 at 6:23

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

share|improve this answer
Ye i tried run.bat -b 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

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

Your Answer


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