title: Deploy app using wildfly maven plugin on an address different than localhost
body: <p>I am a bit new to maven and wildfly. I can successfully deploy my app on 127.0.0.1:8080/myapp using eclipse and the wildfly-maven-plugin but I would like to deploy it on the IP address of my machine (192.168.0.101) so I can access it from another computer. My POM looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;org.vch.apps&lt;/groupId&gt;
      &lt;artifactId&gt;myapp-chat&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;name&gt;vch-myapp&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
              &lt;artifactId&gt;logback-core&lt;/artifactId&gt;
              &lt;version&gt;1.0.13&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
              &lt;version&gt;1.9.3&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;profiles&gt;
      &lt;profile&gt;
       &lt;id&gt;profileIP&lt;/id&gt;
       &lt;build&gt;
          &lt;finalName&gt;myapp&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.wildfly.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;wildfly-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.0.1.Final&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;jbossHome&gt;/usr/local/wildfly-8.0.0.Final&lt;/jbossHome&gt;
                      &lt;!--hostname&gt;192.168.0.101&lt;/hostname&gt;
                      &lt;port&gt;8080&lt;/port--&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>If I execute wilfly:run from eclipse and specify the profileIP in the Profiles box in Eclipse, the wildfly I downloaded and unpacked to '/usr/local/wildfly-8.0.0.Final' will start on 127.0.0.1:8080 and my application will be deployed to this address. 
  If I uncomment the hostname and port elements my app is still deployed on localhost. </p>
  
  <p>Is there a way to deploy my app on the ip specified in the hostname element using the maven plugin or do I need to make changes to the configuration files in the wildfly folder? I only downloaded wildfly and unpacked it and did not add any wildlfy servers to eclipse.</p>