diff --git a/src/NameService.cxx b/src/NameService.cxx
index b11f78403dce20c89e0f845aa6cdf7e7c2730d89..53cb773f90b4238c13b6bcfa5544aa379d432f2e 100644
--- a/src/NameService.cxx
+++ b/src/NameService.cxx
@@ -77,7 +77,7 @@ namespace daq {
 		        auto addr4(addr.to_v4());
 			auto mask4(mask.to_v4());
 
-                        if(htonl(addr4.to_ulong() & mask4.to_ulong()) == (intf->network() & htonl(mask4.to_ulong()))) {
+                        if(htonl(addr4.to_ulong() & mask4.to_ulong()) == (intf->address() & htonl(mask4.to_ulong()))) {
 			    info.Addresses.push_back(intf->address_string() + '/' +  mask4.to_string());
                         }
 
@@ -301,7 +301,7 @@ namespace daq {
                     continue;
                 }
 
-                if((intf->network() & htonl(mask.to_ulong())) == htonl(addr.to_ulong())) {
+                if((intf->address() & htonl(mask.to_ulong())) == htonl(addr.to_ulong())) {
                     return boost::asio::ip::address::from_string(intf->address_string());
                 }
             }