This is a simple script to alarm if it sees that you have connected to the IP address you're looking for.
Run like this:
find_connections.py <IP TO FIND>
for example if you're looking for 1.1.1.1:
find_connections.py 1.1.1.1
OR
Replace the IP at the bottom (127.0.0.1) with the IP you're looking for and run it with python. Your computer will beep if you've been connected to the IP for longer than 2 seconds