How to Choose the Right NIC on a Multi-NIC Server
EveryonePrint is a server-based secure and mobile printing solution that enables users to print seamlessly from various devices, including workstations, laptops, notebooks, and mobile devices. By default, EveryonePrint services are bound to all available network interface cards (NICs) on the server. However, in some scenarios, you may want to restrict EveryonePrint to use only a specific NIC. In this article, we’ll guide you through the process of configuring EveryonePrint to achieve this.
Issue:
A server is setup with multiple NICs (network interface card) and by default EveryonePrint services are bound to all interfaces.
The aim is to configure EveryonePrint so that it is only using one of the NIC.
- NIC 1: 192.168.1.11
- NIC 2: 192.168.1.21 => select this one
Resolution:
- Stop the EveryonePrint Web service
- Make a backup copy of <Program Files(x86)>\EveryonePrint\eop.xml
- Edit <Program Files(x86)>\EveryonePrint\eop.xml in an editor such as Notepad
- Change the <eopapiendpoint> tag with the specific IP address of the card to use like, and save the change:
<eopapiendpoint>http://<strong>192.168.1.21</strong>:7290/api/</eopapiendpoint>
- Make a backup copy of <Program Files(x86)>\EveryonePrint\etc\jetty.xml
- Edit <Program Files(x86)>\EveryonePrint\etc\jetty.xml and change 'Host' configuration from:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" /></Set>
<Set name="port"><SystemProperty name="jetty.port" default="7290"/></Set>to
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" default="<strong>192.168.1.21</strong>"/></Set>
<Set name="port"><SystemProperty name="jetty.port" default="7290"/></Set>and save the change.
- Restart EveryonePrint Web service
Test New Setup:
Now you can access EveryonePrint interfaces on this specific NIC IP address only:
- Admin Interface:
http://127.0.0.1:7290/admin/login.cfm => Fails
http://192.168.1.11:7290/admin/login.cfm => Fails
http://192.168.1.21:7290/admin/login.cfm => OK
- Web Portal:
http://127.0.0.1:7290/login.cfm => Fails
http://192.168.1.11:7290/login.cfm => Fails
http://192.168.1.21:7290/login.cfm => OK