how to compare ip addresses

前端 未结 6 535
梦如初夏
梦如初夏 2020-12-18 15:34

How to compare IP Address that is stored in an array of Ip[0] with remote Endpoint?? Please Help me.

6条回答
  •  无人及你
    2020-12-18 16:23

    All the above variants will work but there's another option not mentioned here: Use the IpAddress GetAddressBytes method to obtain the address as bytes and compare them. This could be usefull if you need to make other processing (such as figuring if an Ip is in an IP class or something like this)..

提交回复
热议问题