diff --git a/Giselle.Net.EtherNetIP/IPAddressUtils.cs b/Giselle.Net.EtherNetIP/IPAddressUtils.cs index 0e876e9..f33e7b4 100644 --- a/Giselle.Net.EtherNetIP/IPAddressUtils.cs +++ b/Giselle.Net.EtherNetIP/IPAddressUtils.cs @@ -38,7 +38,7 @@ public static IPAddress ToIPv4Address(this int address, bool isBigEndian = true) public static int ToIPv4Address(this IPAddress address, bool isBigEndian = true) { - var bytes = address.GetAddressBytes(); + var bytes = address.MapToIPv4().GetAddressBytes(); int value = 0; if (isBigEndian == true)