diff --git a/src/client/configurationmanager.cpp b/src/client/configurationmanager.cpp
index 80ef4fa194cc54425b7a235620ce9439c1bc816b..7a75bfcc2d29d77fbe64c26567297f4f278f2fce 100644
--- a/src/client/configurationmanager.cpp
+++ b/src/client/configurationmanager.cpp
@@ -903,7 +903,7 @@ void setAccountsOrder(const std::string& order)
 std::string
 getAddrFromInterfaceName(const std::string& interface)
 {
-    return jami::ip_utils::getInterfaceAddr(interface);
+    return jami::ip_utils::getInterfaceAddr(interface, AF_INET);
 }
 
 std::vector<std::string>
diff --git a/src/ip_utils.h b/src/ip_utils.h
index e0227532964df9f022f68b09fd05bbec5d0b6216..80950a2be1b7134e3d869e4dd13176a4db3231a3 100644
--- a/src/ip_utils.h
+++ b/src/ip_utils.h
@@ -305,7 +305,7 @@ IpAddr getLocalAddr(pj_uint16_t family);
  * Get the IP address of the network interface interface with the specified
  * address family, or of any address family if unspecified (default).
  */
-IpAddr getInterfaceAddr(const std::string &interface, pj_uint16_t family = pj_AF_UNSPEC());
+IpAddr getInterfaceAddr(const std::string &interface, pj_uint16_t family);
 
 /**
  * List all the interfaces on the system and return
diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp
index 09d5334f4fd421a7294b5deb7d839a8872c9f619..aa43f1f321c083fd0c44724a658ebdf3ef3e9d8a 100644
--- a/src/jamidht/jamiaccount.cpp
+++ b/src/jamidht/jamiaccount.cpp
@@ -550,7 +550,7 @@ JamiAccount::onConnectedOutgoingCall(SIPCall& call, const std::string& to_id, Ip
     call.setIPToIP(true);
     call.setPeerNumber(getToUri(to_id+"@"+target.toString(true).c_str()));
 
-    const auto localAddress = ip_utils::getInterfaceAddr(getLocalInterface());
+    const auto localAddress = ip_utils::getInterfaceAddr(getLocalInterface(), target.getFamily());
 
     IpAddr addrSdp;
     if (getUPnPActive()) {