Joe Joe - 14 days ago 5
Java Question

How to access web application in host running in virtual machine

Currently I have setup an ubuntu server in virtual PC running in Windows 7.

Got it from http://developer-should-know.com/post/134394533957/how-to-install-wildfly-on-ubuntu

I configured JAVA and JBOSS related configuration and deployed a simple .war file(App).

Now I want to access it in my host pc i.e. in windows.
when I am pinging from host pc

ip: 192.168.64.129
its responding but when I put the ip in host browser its not accessing war file.

I know now i am lacking some more config issue.
How to solve it?

Answer

By default, wildfly listens on port 8080 (and the default http port of browsers is 80). So you could use

http://192.168.64.129:8080/

Alternatively, see the WildFly Admin Guide - Configuring interfaces and ports and change the http binding from 8080.

Comments