IIS and Tomcat, running app on Tomcat's server, two machines

Posted on 2012-09-04
Last Modified: 2012-09-05
Hi, I need help with this.

I have a:

Server A - Running IIS
Server B - Running Tomcat, MySQL, and my java app, which is located here too.

They're both connected in a LAN.

Right now I can access my app easily like:

Is it possible to access it trhough Server A, without using the 8080 port?

Server A has the access to internet, security certificate etc. and there's no room for installing my app there.

Server B is newer, my app runs perfectly there, but it doesn't have internet access.

I was asked to do this so the people outside the LAN, could use the app (through internet).

Is this posible??

I've seen a lot of documents regarding IIS & Tomcat on different servers, however their purpose is only to spread the load among different machines, which in my case that would be useful if I had my app running on Server A, and the only thing I needed was to run tomcat's proceses using a different machine.

However, if I made my self clear so far, you can tell is not my case since the whole app is stored and running in Server B.

Is there a way to acomplish this???

Right now, I followed all the steps in the IIS - Tomcat howto document, and modified the & to:



but, now success at all. If I try to access it using a web browser like this:

/localhost/myApp (doing this from Server A, where IIS is running)

I'm just prompted to download a file, even if the file doesn't exists.

Before I continue this research, I'd like to know if it's possible to accomplish this.

Any ideas will be more than welcome, best regards.
Question by:sergiomn
    LVL 2

    Accepted Solution

    Actually it's pretty easy,
    I assume you have a router?

    You need to activate portforwarding on the router to the ip adress of Server B.

    For example forward port 8080 to server B on port 8080, that way users who use your WAN ip only need to use the public IP:8080 and they will access your app.

    We use the same method in our company!
    LVL 10

    Expert Comment

    by:Pramod Kumar
    There is another way:

    1. Deploy an application in iis and write a line in default page to redirect to Server-B application url (server.transfer)

    2. or, if install Apache server on server-a, then it can also forward the request to another server after a small configuration.

    Author Closing Comment

    Thanks a lot!! To be honest, I haven't tried  it yet, since my client changed his mind, so now "Server B" will have access to the internet, so all I need to do is setup iis & tomcat on the same machine.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now