Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure JBoss in Intellij that bind address is not localhost but my IP?

In Eclipse you can set hostname for JBoss Runtime. But I can't find this configuration in IDEA Intellij.

netstat -lnt

show

tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN

like image 866
Gerd Avatar asked Feb 27 '15 14:02

Gerd


People also ask

How does JBoss integrate with IntelliJ?

WildFly and IntelliJ Integration You can find it in: Settings > Build, Executions, Deployment -> Application Servers > “+” > JBoss Server. Then, you will be able to add a Run/ Debug configuration which includes JBoss Server.

What is bind address in JBoss?

It tells JBoss which local address to bind to. The server will only listen on that specific interface, not on all local interfaces. (e.g. if you have bind address set to 127.0. 0.1 , it will not listen to connection from other hosts, only on localhost.)

How do I run a web app locally in IntelliJ?

Right-click a file and select Open in Browser. From the main menu, select View | Open in Browser. Use the browser popup in the top right part of the editor window. Click the browser button to open the web server file URL, or Shift+Click it to open the local file URL.

How do I edit IntelliJ configuration?

From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . In the left-hand pane of the run/debug configuration dialog, click Edit configuration templates…. In the Run/Debug Configuration Templates dialog that opens, select a configuration type.


2 Answers

You could also simply do this in IntelliJ:

  1. Select Run > Edit Configurations from the IDE's menu
  2. Select your JBoss as Application server
  3. Add -Djboss.bind.address=0.0.0.0 to yourVM Options
like image 118
Lambart Avatar answered Oct 06 '22 01:10

Lambart


  1. Intellij > Run > Edit Configurations
  2. Select your JBoss Configuration
  3. Startup/Connection > Startup Script (Select your run mode Run / Debug / Coverage )
  4. uncheck "use default"
  5. $JBOSS_HOME/bin/run.sh -c default -b 0.0.0.0

"-b 0.0.0.0" bound JBoss on any interface.

like image 39
Gerd Avatar answered Oct 06 '22 01:10

Gerd