jedie/python-ping — Issue #10: Ping receives reply from other IPs
Author: alexlouden
Created: 2012-01-16 06:52:39+00:00
State: open

I've been using your script to ping several IPs at once from multiple threads (at almost the same time). One of the computers I'm pinging I know is down, yet Ping tells me it's up, and has a very similar delay to the other computer.

After this line here:

```python
receive_time, packet_size, ip, ip_header, icmp_header = self.receive_one_ping(current_socket)
```
`ip` will be from computer A, wheras `destination` and `dest_ip` is to computer B. I suggest you check that the received ping is from the same address as the sent ping.

Thanks!