S
showton
Unregistered / Unconfirmed
GUEST, unregistred user!
有那样复杂吗????各位!
我来!
uses winsock;
var s,ls:integer;
var address:sockaddr_in;
begin
getpeername(s,address,ls);
showmessage(inet_ntoa(address.sin_addr));//局域网主机的外部IP
showmessage(inttostr(ntohs(address.sin_port)));//端口
我来!
uses winsock;
var s,ls:integer;
var address:sockaddr_in;
begin
getpeername(s,address,ls);
showmessage(inet_ntoa(address.sin_addr));//局域网主机的外部IP
showmessage(inttostr(ntohs(address.sin_port)));//端口