Primary key constraint on multiple columns

I have created a table with constraints on two columns (of type TEXT and IP), but insert operation works well with just one column different then existing. This leads to duplicates when I want to explicitly have unique values on both columns.

Running a single node