Вниз
Скачать: CL | DM;

Как получить IP своего компьютера?   Найти похожие ветки 

← →
dimanew   (2002-08-23 10:37) [0]

Сабж собственно.


← →
Wonder ©   (2002-08-23 11:14) [1]

Поиск собственно.


← →
ППавел   (2002-08-23 12:23) [2]

Используй следующую функцию:

Uses Winsock;

function MyIP : string;

type
TaPInAddr = array [0..10] of PInAddr;
PaPInAddr = ^TaPInAddr;
var
phe : PHostEnt;
pptr : PaPInAddr;
Buffer : array [0..63] of char;
I : Integer;
GInitData : TWSADATA;
begin
WSAStartup($101, GInitData);
Result := "";
GetHostName(Buffer, SizeOf(Buffer));
phe :=GetHostByName(buffer);
if phe = nil then
begin
Exit;
end;
pptr := PaPInAddr(Phe^.h_addr_list);
I := 0;
while pptr^[I] <> nil do
begin
result:=StrPas(inet_ntoa(pptr^[I]^));
Inc(I);
end;
WSACleanup;
end;


← →
NeyroSpace   (2002-08-23 14:04) [3]

IPHlpApi.dll



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
14-78586
Юрий Федоров
2002-10-01 19:46
2002.10.24
Редактор метафайлов


1-78360
Rammst
2002-10-14 21:04
2002.10.24
Form


1-78456
Rammst
2002-10-12 17:41
2002.10.24
Текст


14-78624
Человек
2002-10-03 16:11
2002.10.24
А как лучше производить оплату за продаваемые мною программы?


4-78711
Aleksandr
2002-09-11 13:26
2002.10.24
Как работать с SHGetSpecialFolderLocation?




   Наверх