UdpConfig.UseDefaultAddress = Config->UseDefaultSetting;\r
IP4_COPY_ADDRESS (&UdpConfig.StationAddress, &Config->StationIp);\r
IP4_COPY_ADDRESS (&UdpConfig.SubnetMask, &Config->SubnetMask);\r
- UdpConfig.StationPort = 0;\r
+ UdpConfig.StationPort = Config->LocalPort;\r
UdpConfig.RemotePort = 0;\r
\r
Ip = HTONL (Instance->ServerIp);\r