Fixed incorrect ID value for IP addresses.

Closes #11.