'How to run MULE on local IP?

I have a MULE application. It consist of a Flow like below:

<flow name="article_list">
    <http:inbound-endpoint address="http://localhost:8000/jcore/article/list" />
    <component class="com.joshlabs.jcore.article.ArticleList" />
</flow>

Now as it can be seen it runs on "localhost".

But everybody is able to access it through my local IP (only if we are on same network). But I don't want that anybody to use these services. How can I prevent this?



Solution 1:[1]

Different options:

  • Use a firewall (the easiest),
  • Protect the HTTP endpoint with Mule/Spring security,
  • If your machine has several IPs, bind the endpoint to an IP that isn't reachable from other machines.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Dossot