You shouldn't warry about which NIC or network address is used to perform a query but you can figure out the request IP address on which your query is going.
RequestConfig.getLocalAddress()
\>Returns local address to be used for request execution.
On machines with multiple network interfaces, this parameter can be used to select the network interface from which the connection originates.