Recent

Author Topic: [SOLVED] getting local IP  (Read 252 times)

Hobbit1972

  • New Member
  • *
  • Posts: 23
[SOLVED] getting local IP
« on: January 07, 2023, 01:31:06 pm »
Hi,

using lNet I'm trying to get my local IP. According to what I found, that should work as follows:

Code: Pascal  [Select][+][-]
  1. aSocket: TLTCPComponent;
  2.  
  3. ...
  4.  
  5. myIP := aSocket.LocalAddress;
  6. myIP := aSocket.PeerAddress;
  7.  

Compilers throws "no member Local|PeerAddress"

:-?

*ouch*
The socket is provied as parameter:
function OnConnect(aSocket... <=!)

my bad!
« Last Edit: January 07, 2023, 02:01:51 pm by Hobbit1972 »

 

TinyPortal © 2005-2018