Machine IP Address not the loop back address.
Original Reporter info from Mantis: homey
-
Reporter name: BartO
Original Reporter info from Mantis: homey
- Reporter name: BartO
Description:
I am using Lazarus 0.9.26.2. I need to be able to display the machine IP address or local IP Address. I looked around in the internet for solution and there seem to be none.
Here is the code I have tried using tools from INet Paelete- TLTCPComponent.
Following code gets me the local Loop Back or LocalHost IP address, but not the machine IP address.
FNetServer.Connect;
FNetServer.IterReset;
IPLabel.Caption:=FNetServer.Iterator.localaddress;
FNetServer.Disconnect;
What am I doing wrong or am I missing anything?
Any help will be appreciated. Thanks,
Mantis conversion info:
- Mantis ID: 14661
- Version: 0.9.26.2