Firstly, convert the IP address to IP number format. Search IP-Country Database using IP number to match a record that has the IP Number between the Beginning IP Number and the Ending IP Number. For example, IP Address "72.77.138.60" is "1213041212" in IP Number. It matched the following recordset in the database.