Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

How to access the server using ipaddress instead of local host  RSS feed

 
somesh sai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have jBoss server instace running on the port 8060. The server is accessing using http://localhost:8060 but unable to access using http://<ipaddress>:8060. I want access this using ipconfig so that the people from other systems in the lan can also accss the server.

Could you please let me know whether I need to start any services in window to do this happen.

Thanks,
Somesh
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this. Use the -b option to start the server
 
somesh sai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

Thanks much for you response. I have tried that option but its still working. I am getting the follwoing error when I try to open the admin console.
----------------------
Network Error (tcp_error)

A communication error occurred: "Operation timed out"
---------------------------

Thanks,
Somesh
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the command that you used to start the server. Which version of the server do you use? And where do you see this error? Also please post the console logs.

While posting the logs, remember to wrap it in a code block by using the Code button in the message editor window.
 
somesh sai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. I have used C:\jboss-4.2.0.GA\bin>run -b 0.0.0.0
2. I am using JBoss 4.2
3. I am seeing the below error on the IE after giving http://xx.xxx.xx.xxx:6080/
------
Network Error (tcp_error)

A communication error occurred: "Operation timed out"
------
4. I have copied the console log in Code block
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some things that you can try to help us narrow down the problem (these are all things we would do if we were sitting at your system, but since we aren't you have to be our hands and eyes):

Check your firewall (on the host running JBoss AS, on the PC running IE, and in between), and make sure that no firewalls are blocking access. (By the way, could you please describe what the network looks like between the system running IE and the system running JBoss AS.)

Run TCPView on the host running JBoss AS and ensure that port 6080 is open.

Run IE on the same box as JBoss AS and enter the URL http://localhost:6080 and see if that runs. If it does, then try http://99.99.99.99:6080, where 99.99.99.99 is the IP address of the host as reported by ipconfig.
 
Adriano Jesus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!

I saw that this post is old, but it is very helpful yet. I was on the same problem, I was not getting connection on my web server using JBoss WidlFly 8.2 in my Android Device. I searched a lot on the Internet about it, but without success.

When I started my wild fly server, a just need to add "-b " and my machine's IP address as mentioned earlier here, so: ./bin/standalone.sh -b 192.168.0.101 for add an interface for the access the server through network and on the android device I use 192.168.0.101:8080 + my web server's address. It works!

Thanks by knowledge shared by you.

 
get schwifty. tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!