Delphi Socket Error 11004
Contents |
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time delphi indy socket error 11004 Job Ways to Get Help Expand Search Submit Close Search Login Join Today
Eidsocketerror Socket Error 11004
Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > socket error 11004 socket error 11004 windows live mail Want to Advertise Here? Solved socket error 11004 Posted on 2005-08-15 Delphi 1 Verified Solution 9 Comments 6,305 Views Last Modified: 2008-01-09 When I put my URL string in to the indy client socket error 11004 ftp component httpd.host it comes back with a socket error 11004, direct IP address works. I can't use the IP address as the the url swaps between IP addresses as they have 4+ servers. I see there is a similar question and the person answering it mentions using gethostbyname. I have searched the delphi help and can't find it. Is there a way I can look up the
Socket Error 11004 Error Number 0x800ccc0d
host url before connecting and use the IP address returned. or is there another solution really need a solution to this ASAP - help. 0 Question by:junebrown Facebook Twitter LinkedIn Google LVL 27 Active today Best Solution byBigRat You can simply create your own "DNS" by creating an "etc hosts" file. This has the IP address/name on each line, comments start with #'s, so :- 127.0.0.1 localhost myhost mypc 162.34.54.123 Go to Solution 8 Comments LVL 15 Overall: Level 15 Delphi 14 Message Expert Comment by:mikelittlewood2005-08-15 Are you making sure you put in the full URL string including the http part and not just www.xxx.com? 0 LVL 15 Overall: Level 15 Delphi 14 Message Expert Comment by:mikelittlewood2005-08-15 ooo probably not the best example of a link to put for demonstration >.< sorry folks 0 Message Author Comment by:junebrown2005-08-15 I am just putting in www.nlis-hub.co.uk do i need http:// in front of it? 0 LVL 15 Overall: Level 15 Delphi 14 Message Expert Comment by:mikelittlewood2005-08-15 I'm not 100% sure but have a go. Won't do any harm to try :o) 0 LVL 27 Overall: Level 27 Delphi 6 Message Active today Expert Comment by:Bi
the Date and time properties dialog I have been trying to 'update now'. I put in a ntp server address (that I verified first on a linux machine), and I get a rather helpful 'An Error occurred'. Ever resourceful, I decided to have a go with Indy idTime and dns could not be resolved socket error 11004 idTimeUDP components in delphi to see if I could get a better idea of what is happening. outlook express socket error 11004 'Active:=True' seems fine, but SyncTime gives me 'Socket Error # 11004' Am I getting to the source of the problem, or am I just using idTime
Socket Error 11004 Grabit
wrongly ? I found : WSANO_DATA 11004 Valid name, no data record of requested type. This error indicates that the key (name, address, and so on) was not found. But couldn't glean any more from that. Any pointers please ? H https://www.experts-exchange.com/questions/21527076/socket-error-11004.html DonS Delphi Developer 2005-02-25 07:12:37 PM Re:Could Someone explain Socket Error 11004 please ? Quote I noticed something odd on my workstation. From the Date and time properties dialog I have been trying to 'update now'. I put in a ntp server address (that I verified first on a linux machine), and I get a rather helpful 'An Error occurred'. Ever resourceful, I decided to have a go with Indy idTime and idTimeUDP components in delphi to see if I could get a better idea http://www.delphigroups.info/2/8/204763.html of what is happening. 'Active:=True' seems fine, but SyncTime gives me 'Socket Error # 11004' Am I getting to the source of the problem, or am I just using idTime wrongly ? The Time protocol is not the same as SNTP or NTP. In Indy, use TIdSNTP to access the NTP server. Quote I found : WSANO_DATA 11004 Valid name, no data record of requested type. This error indicates that the key (name, address, and so on) was not found. But couldn't glean any more from that. Any pointers please ? WSANO_DATA 11004 Valid name, no data record of requested type. The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record-indicating the host itself exists, but is not directly reachable. Are you using the host name or IP address to access the server? Hugh Jones Delphi Developer 2005-02-25 08:21:13 PM Re:Could Someone explain Socket Error 11004 please ? DonS writes: Quote The Time protocol is not the same as SNTP or NTP. In Indy, use TIdSNTP to access the NTP server. I will have a look at that Quote WSANO_DATA 11004 Valid name, no data record of requested type. The requested name is valid and was found in the database, but it does not have the correct associated data being resolved
Herramientas Buscar en Tema Desplegado #1 10-09-2008 Lord Delfos Miembro Registrado: Jan 2008 Ubicaciуn: http://www.clubdelphi.com/foros/showthread.php?t=59833 Tandil, Argentina Posts: 558 Indy ftp: socket error 11004 Hola, gente. Bueno, como era predecible este asunto de Indy no camina... Hay algo que me molesta terriblemente, y es la poca http://www.cyberforum.ru/delphi-networks/thread360852.html (o inencontrable) informaciуn acerca de los errores. Por ejemplo. їQuй es el error de socket 11004? Aparece inmediatamente despuйs de que hago el connect. Si alguno sabe algo, lo aplaudo. Lord socket error Delfos Ver Perfil ЎVisita mi Sitio! Encontrar Todos los Mensajes de Lord Delfos #2 10-09-2008 Lord Delfos Miembro Registrado: Jan 2008 Ubicaciуn: Tandil, Argentina Posts: 558 Amplнo, porque con el enojo que tenнa hace un rato se me pasaron algunos datos importantes Por lo que estuve viendo es algo relacionado con el DNS, pero si yo pruebo contectarme socket error 11004 al mismo servidor con un cliente FTP, la cosa funciona perfectamente. Lord Delfos Ver Perfil ЎVisita mi Sitio! Encontrar Todos los Mensajes de Lord Delfos #3 10-09-2008 TOPX Miembro Registrado: May 2008 Ubicaciуn: Bogotб Posts: 427 Hola, No es un mensaje de error de Indy, es de Windows (especнficamente WinSock) y codificado como WSANO_DATA. Y que indica que el nombre del host usado existe, pero al traducirlo a una IP (con DNS, WINS, etc.) no fue posible abrir la conexiуn. Entonces, hay que intentar las tнpicas: Con una IP (no ruta) Buscar firewalls tanto en el servidor, como en el cliente __________________ "constructive mind, destructive thoughts" TOPX Ver Perfil ЎVisita mi Sitio! Encontrar Todos los Mensajes de TOPX #4 10-09-2008 Lord Delfos Miembro Registrado: Jan 2008 Ubicaciуn: Tandil, Argentina Posts: 558 La pregunta serнa entonces porquй sн funciona un cliente FTP (FileZilla o el ftp del DOS). Lord Delfos Ver Perfil ЎVisita mi Sitio! Encontrar Todos los Mensajes de Lord Delfos « Tema Anterior | Prуximo Tema » Herramientas Mostrar Versiуn Imprimible Enviar por Correo Desplegado Mod
Тесты Блоги Сообщество Поиск Ссылки сообщества Социальные группы Поиск Google по форуму Поиск Yandex по форуму Поиск по форуму Расширенный поиск Тесты Список тестов К странице... @hacker_007 189 / 28 / 1 Регистрация: 15.09.2011 Сообщений: 339 Записей в блоге: 1 05.10.2011, 13:45 Socket error #11004 #1 Т.к программа добавлена в автозапуск, там стоит проверка коннекта к интернету, и по включению интернета, он должен войти в сеть. Но место этого появляется ошибка: Что с ней делать? Similar Эксперт 41792 / 34177 / 6122 Регистрация: 12.04.2006 Сообщений: 57,940 05.10.2011, 13:45 Socket error #11004 Посмотрите здесь: Socket'ы Delphi Delphi Socket-ы в дельфи 2010Delphi Изменить интервал таймера через socketDelphi SocketDelphi Socket 10053Socket или Indy ? Delphi Работа с TSocketConnection и Socket Server Delphi Delphi Asynchronous socket error 10053 при отключении клиента Искать еще темы с ответами Или воспользуйтесь поиском по форуму: После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума. @Arcor 4760 / 1761 / 152 Регистрация: 20.11.2009 Сообщений: 5,553 Записей в блоге: 1 05.10.2011, 13:52 Socket error #11004 #2 поставь твою проверку в Delphi1 try except это критическая ситуация, в try попадает ошибка, т.е. ловим ошибку, exept'ом выполняется другая часть ситуации как if и else, принцип, но не эквивалент @hacker_007 189 / 28 / 1 Регистрация: 15.09.2011 Сообщений: 339 Записей в блоге: 1 05.10.2011, 15:20 [ТС] Socket error #11004 #3 Вот эта часть кода: Delphi1 2 3 4 5 6 7 8 9 10 procedure TForm1.FormCreate(Sender: TObject); begin AlphaBlend:=true; AlphaBlendValue:=0; idFTP1.Host:='000'; idFTP1.Port:=21; idFTP1.Username:='000'; idFTP1.Password:='00'; idFTP1.Connect; end; -вот этот end он выделяет синимДобавлено через 9 минут он походу к фтп приконнектиться не может пока инета нет вот и шлёт ошибки... Добавлено через 40 минут Сообщение от hacker_007 Вот эта часть кода: Delphi1 2 3 4 5 6 7 8 9 10 procedure TForm1.FormCreate(Sender: TObject); begin AlphaBlend:=true; AlphaBlendValue:=0; idFTP1.Host:='000'; idFTP1.Port:=21; idFTP1.Username:='000'; idFTP1.Password:='00'; idFTP1.Connect; end; -вот этот end он выделяет синимДобавлено через 9 минут он походу к фтп приконнектиться не может пока инета нет вот и шлёт ошибки... Всё исправил... Delphi1 2 3 4 5 idFTP1.Host:='000'; idFTP1.Port:=21; idFTP1.Username:='000'; idFTP1.Password:='00'; idFTP1.Connect;Добавил в процедуру проверки коннекта Yandex Объявления 05.10.2011, 15:20 Socket error #11004 Текущее время: 03:44. Часовой пояс GMT +3. КиберФорум - форум программистов, компьюте