I'm not familiar with Notepad++, but if it supports back-references then this ought to work:
Replace ^(\d+\.\d+\.\d+\.\d+ )(.+)\n(\1.+\n)*
with \1\2\n
Note: Depending on how the line breaks are stored in your source file, you might have to change each occurrence of \n
to \r
or \r\n