Server: Select NIC on Multi-NIC Server

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:

  1. Stop the EveryonePrint Web service
  2. Make a backup copy of <Program Files(x86)>\EveryonePrint\eop.xml
  3. Edit <Program Files(x86)>\EveryonePrint\eop.xml  in an editor such as Notepad
  4. Change the <eopapiendpoint> tag with the specific IP address of the card to use like, and save the change:
     
    &lt;eopapiendpoint&gt;http://<strong>192.168.1.21</strong>:7290/api/&lt;/eopapiendpoint&gt;
  5. Make a backup copy of <Program Files(x86)>\EveryonePrint\etc\jetty.xml
  6. Edit <Program Files(x86)>\EveryonePrint\etc\jetty.xml and change 'Host' configuration from:
     
    &lt;Call name="addConnector"&gt;
    &lt;Arg&gt;
    &lt;New class="org.mortbay.jetty.nio.SelectChannelConnector"&gt;
    &lt;Set name="host"&gt;&lt;SystemProperty name="jetty.host" /&gt;&lt;/Set&gt;
    &lt;Set name="port"&gt;&lt;SystemProperty name="jetty.port" default="7290"/&gt;&lt;/Set&gt;

    to

     &lt;Call name="addConnector"&gt;
    &lt;Arg&gt;
    &lt;New class="org.mortbay.jetty.nio.SelectChannelConnector"&gt;
    &lt;Set name="host"&gt;&lt;SystemProperty name="jetty.host" default="<strong>192.168.1.21</strong>"/&gt;&lt;/Set&gt;
    &lt;Set name="port"&gt;&lt;SystemProperty name="jetty.port" default="7290"/&gt;&lt;/Set&gt;

    and save the change.

  7. 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