diff --git a/net/helper.go b/net/helper.go
index efb6759637fab4d13a08b43908057226e723d511..4f7319cddfd92ef975819b143e4c03488ec22fb8 100644
--- a/net/helper.go
+++ b/net/helper.go
@@ -4,5 +4,5 @@ import "net"
 
 // IPv4ToUint32 converts an `net.IP` to an uint32 interpretation
 func IPv4ToUint32(ip net.IP) uint32 {
-	return uint32(ip[0]) + uint32(ip[1])<<8 + uint32(ip[2])<<16 + uint32(ip[3])<<24
+	return uint32(ip[3]) + uint32(ip[2])<<8 + uint32(ip[1])<<16 + uint32(ip[0])<<24
 }