> Thanks for the reply.  I used localname and resolvename
> and it returned 127.0.0.1.  This is not the server's ip
> address.  The localname came out OK.  I'm currently connecting
> to clients with another ip address.  Also, I have ony 1 network
> card on my laptop.  I'm using TUDPBlockSocket to get the address
> right after I do TUDPBlockSocket.create.  Should I be using
> TTCPBlockSocket?

It is not depended on socket type, it just need to have socket 
interface initialized. (for this reason it is in TBlcokSock class) 
Example:

procedure TForm1.Button44Click(Sender: TObject);
var
  Sock: TUDPBlockSocket;
begin
  Sock := TUDPBlockSocket.Create;
  try
    sock.ResolveNameToIP(sock.LocalName, memo1.Lines);
  finally
    Sock.Free;
  end;
end;

> Also, it takes a while to get the local name.  Is this correct?

It returns all my four IP addresses immediately here.



-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to