Unable to access JBoss server from other machines

Recently, I was running one of the application on JBoss server. Now I was able to access it using http://localhost:8080/myapp. But I was not able to access the application if I try to use my machine name or IP address instead of localhost in JBoss server. I am using JBoss 4.2.3 version. I searched the internet and found this solution. JBoss version 4.2.0.GA always bound to the any address “0.0.0.0”.This lead many people put their unprotected content on the internet or on their local LAN. Hence in the newer version of JBoss you have to explicitly choose to do so. For *nix environment
./run.sh -b 0.0.0.0
Code language: HTML, XML (xml)
and for Windows, use
run.bat -b 0.0.0.0
Code language: HTML, XML (xml)
This will put the JBoss server online and your application can be accessed from other machines.

View Comments

Recent Posts

  • Java

Java URL Encoder/Decoder Example

Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…

4 years ago
  • General

How to Show Multiple Examples in OpenAPI Spec

Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…

4 years ago
  • General

How to Run Local WordPress using Docker

Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…

4 years ago
  • Java

Create and Validate JWT Token in Java using JJWT

1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…

4 years ago
  • Spring Boot

Spring Boot GraphQL Subscription Realtime API

GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…

4 years ago
  • Spring Boot

Spring Boot DynamoDB Integration Test using Testcontainers

1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…

4 years ago