Delphi, How to get all local IPs?

前端 未结 6 1671
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 07:47

Any one know a way in delphi get a simple list (eg tstrings) of the local ip address.

I have had a look at the other related question, and cant seem to get my head a

6条回答
  •  清歌不尽
    2020-12-03 08:17

    If you are using ICS for socket communication, you can use LocalIPList function, defined in the OverbyteIcsWSocket unit.

    Even if you are not using it, you can download the source code and look up the implementation. It uses WinSock internally.

提交回复
热议问题