fix writing in a closed channel, add IPv4 ID