Socket error 11001host not found

Fixes a problem in which a "Host Not Found (11001)" error message is generated when an SSL site is accessed by using a downstream Forefront Threat Management Gateway 2010 server that has HTTPS Inspection enabled.

Microsoft Forefront Threat Management Gateway 2010 Service Pack 2 Forefront Threat Management Gateway 2010 Enterprise Forefront Threat Management Gateway 2010 Standard Microsoft Forefront Threat Management Gateway 2010 Service Pack 2 Forefront Threat Management Gateway 2010 Enterprise Forefront Threat Management Gateway 2010 Standard More…Less

Symptoms

Consider the following scenario:

  • A server is implemented as a downstream proxy server in a Microsoft Forefront Threat Management Gateway (TMG) 2010 environment.

  • Microsoft Forefront Threat Management Gateway (TMG) 2010 Service Pack 2 was applied to the TMG server.

  • External DNS resolution is not configured on the TMG server.

  • HTTPS Inspection is enabled on the TMG server.

In this scenario, when the TMG server is used to access an SSL site, a «Host Not Found (11001)» error message is generated.

Cause

This problem occurs because of a change to the HTTPS Inspection exception logic that was made in Forefront TMG 2010 Service Pack 2.

Resolution

To resolve this problem, install the hotfix package that is described in the following Microsoft Knowledge Base article:

2735208 Rollup 3 for Forefront Threat Management Gateway (TMG) 2010 Service Pack 2

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.

References

For more information about the change to the exception logic for HTTPS Inspection, click the following article number to go to the article in the Microsoft Knowledge Base:

2619991 FIX: An application that uses port 443 to connect to a remote web server no longer works after HTTPSi is enabled in a Forefront Threat Management Gateway 2010 environmentThe new exception logic performs a DNS name resolution on the target’s fully qualified domain name (FQDN) to determine whether it is part of the destination exception list. If the DNS lookup is unsuccessful, this causes the request to fail and generate the «Host Not Found (11001)» error message.

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Need more help?

Symptoms

  • Remote computer status is shown as «Offline» in the Viewer address book.
  • You can establish a remote connection, but the connection is unstable.

When you examine the Host log (or Agent log, if Agent is used) you see the following error: Socket Error # 11001 Host not found.(EIdSocketError)


Cause

This error means that the remote Host or Agent is unavailable due to one of these reasons:

  • DNS problem, i.e. the IP address of the intermediate server cannot be resolved from its DNS name.
  • The intermediate server address or outbound port are blocked by the firewall.

As quoted from Windows Sockets Error Codes:

WSAHOST_NOT_FOUND

11001
Host not found.
No such host is known. The name is not an official host name or alias, or it cannot be found in the database(s) being queried. This error may also be returned for protocol and service queries, and means that the specified name could not be found in the relevant database.


Solution 1: Clear the DNS cache

  1. Press Win+R to open the Run dialog.
  2. Type ipconfig /flushdns and click OK (or press Enter) to clear the DNS cache:
    Flush DNS
  3. Right click on the Host icon in the tray area and select Restart Host. Wait 10-20 seconds until the Host restarts and connects back to the intermediate server.

Solution 2: Check connectivity with our public server

If you use our public Internet-ID service make sure that the primary server at id.remoteutilities.com can be accessed from the Host PC and the IP address of the server can be resolved successfully.

  1. Press Win+R to open the Run dialog.
  2. Type cmd and click OK (or press Enter). The Command Prompt will open.
  3. Type ping id.remoteutilities.com and press Enter.
  4. If the ping command and DNS resolution are successful, the result will be shown in the CMD window:
    Ping ID server
  5. If you receive «Request timed out» as a response, the ID server cannot be reached from the Host location. Please, contact your system administrator.

Solution 3: Make sure outbound connection is allowed

The Internet-ID connection requires some outbound ports to be open. When used with our public service the ports used are TCP 5655 and 443. Make sure that the Host can establish outbound connections on these ports or allow the ports in the local and perimeter firewall if necessary.

Even if outbound connections on TCP ports 5655 and 443 are allowed on the Host machine and in the perimeter firewall, such connections may still be blocked on the ISP level. In this case you should contact your ISP representative.

I am trying to send email using Indy 10.5.7 on C++ Builder XE but I get Host not found error. I added TIdSMTP, TIdSSLIOHandlerSocketOpenSSL and TIdMessage components. I set the host to smtp.office365.com, the port to 587 and UseTLS to utUseExplicitTLS. The username and password are set for the email address of the account I need to connect with.

I am trying to send the email using :

IdMessage1->From->Name = Name->Text;
IdMessage1->From->Address = EmailAddress->Text;
IdMessage1->Body = Msg->Lines;

try
{
    IdSMTP1->Connect(1000);
    try
    {
        IdSMTP1->Send(IdMessage1);
    }
    __finally
    {
        IdSMTP1->Disconnect();
    }
}
catch (const Exception &E)
{
    MessageBox(NULL, E.Message.c_str(), L"Error", MB_OK | MB_ICONERROR);
}

asked Oct 15, 2019 at 5:15

user6604390's user avatar

6

This line is wrong:

IdSMTP1->Connect(1000);

In Indy 9, Connect() had an overload that accepted a timeout as input. But in Indy 10, that overload was removed, and the timeout parameter was reimplemented as a ConnectTimeout property.

Your original code compiles because Connect() in Indy 10 has an overload that takes a hostname String as input, overwriting the Host property, and (Ansi|Unicode)String has a constructor that accepts an int as input. Thus, your code is effectively doing this

IdSMTP1->Connect(String(1000));

Which tries to connect to a hostname named "1000", ignoring the "smtp.office365.com" hostname you assigned to the Host property. That is why you are getting socket error 11001.

You need to replace the offending line with this code instead:

//IdSMTP1->Connect(1000);
IdSMTP1->ConnectTimeout = 1000;
IdSMTP1->Connect();

answered Oct 19, 2019 at 3:46

Remy Lebeau's user avatar

Remy LebeauRemy Lebeau

536k30 gold badges444 silver badges750 bronze badges

1. Когда забирал почту  с почтового ящика произошла ошибка:

Ошибка Outlook. Ошибка сокета  11001.   Код ошибки 0x800CCC0D.
Ошибка Outlook. Ошибка сокета  11001. 
Код ошибки 0x800CCC0D.

Узел  ‘pop.mail.ru’ не найден. Проверьте введенное имя сервера. Учетная запись: ‘КартинаM’, Сервер: ‘pop.mail.ru’, Протокол: POP3, Порт: 110, Защита (SSL): Нет, Ошибка сокета: 11001, Код ошибки: 0x800CCC0D


3.   Анализ ошибки сокета: 11001

3.1. Документ «Коды ошибок TCP/IP» на русском языке описывает эту ошибку следующим образом :

11001  WSAHOST_NOT_FOUND     Host not found (Хост не найден).

    Указанный хост неизвестен: имя не является официальным hostname или псевдонимом (alias), или его не удается найти в запрашиваемых базах данных. Эта ошибка может возвращаться при запросах протоколов и служб; она указывает на то, что указанное имя нельзя найти в соответствующей базе данных.

3.2. По описанию ошибки сокета 11001   можно
сделать предварительный вывод, что cкорее всего, какие то проблемы с названием сервера 
pop.mail.ru . Так как имя сервера правильное, то возможны проблемы с доступом к DNS -серверу. Необходимо проверить доступ к другим почтовым  ящикам, проверить доступ к интернету из других программ.
 

4. Анализ кода ошибки 0x800CCC0D.

4.1. В документе   «Коды ошибок электронной почты»  описана эта ошибка  и  приведены некоторые причины ошибки и методы устранения  этой и некоторых других ошибок:

0x800CCC0D CANT_FIND_HOST Не удается обнаружить сервер
 

—- Эта ошибка может появиться, если у вас есть опция ‘уведомьте меня, если есть какие-нибудь новые группы новостей’ выбран, но не имеете созданной учетной записи новостей. Зайдите в меню Сервис> Свойства обозревателя> Общие TAB (TOOLS > OPTIONS > GENERAL TAB) и отключите эту опцию. 

—- Если Нортон-Антивирус установлен, то возможно проблема в нем .

—- Можете ли вы открыть веб-страницы? Если это так, то вы можете просто неправильно ввели адрес почтового сервер на свой счет или сервер именно сейчас может быть недоступен.
 

—- Если вы не можете открыть веб-страницы, то разорвите интернет соединение и попробуйте подключиться снова 

—- Перезагрузите компьютер и повторите попытку.
 

—- Если он по-прежнему не работает, и вы не получаете любые веб-страницы, то данные могут передаваться через сеть надлежащим образом. Проверить настройки DNS, удалить и переустановить TCP / IP в Панель управления> Сеть (Control Panel > Network).
 

—- Можно попробовать удалить кэш DNS командой ipconfig /flushdns (Пуск -> Все программы -> Стандартные ->Командная строка.  Вести в командную строку ipconfig /flushdns)

4.2. Одной из причин названа та ,что возникли проблемы с соединением к интернету, так как не работают программы -браузеры и нельзя открыть веб-страницы.Значит не работает соединение с интернетом.

5. Причина ошибки.

—Оказалась в интернет соединении. Звонок в службу поддержки подтвердил предположение. 
Через некоторое работа интернета восстановилась. И почтовый ящик на сервере
pop.mail.ru заработал снова.

  • Home
  • Forum
  • TeamSpeak Legacy Versions
  • [TeamSpeak 2] Client Support
  • Socket Error (11001 / 11004)

  1. November 20th, 2002, 09:11 AM


    #1

    Solution: Socket Error #11004 (maybe other preconnect timeouts)

    i didnt see a solution to this one here so i thought i’d post it.

    According to this technet article a Socket error #11004 is a DNS timeout issue, not an issue with the ts server itself.

    the easy work around is to use the IP address in the server address field instead of the hostname.

    so instead of using yourtsserver.com:8768, use 123.456.789.123:8768 (substituting the IP address of your ts server for the example).

    I hope that helps.

    EDITED by Guldi: => MERGED Threads (As this one contains a usefull link) !
    Thread was made sticky earlier.

    Last edited by guldi; October 14th, 2004 at 01:17 PM.


  2. March 20th, 2003, 01:44 AM


    #2

    When you start your teamspeak client on your computer, click on «conection», then «quick connect».

    Where it says «Server Address» instead if a regular url address such as www.swoop67.com:8768 <— these last digits are your port numbers, you will need to replace the actuall address with the IP address so now it should read something like this.
    204.08.0.44:8768 the ip address you should know if you have hosted the TS server remotely, ask your hosting provider if your not sure what it is.
    Remember the ip address that i used is just made up, its only there to show you that there should be a group of four numbers sperated by full stops followed by the port number.

    Hope that helps.


  3. June 7th, 2004, 01:22 AM


    #3

    Socket Error (11001 / 11004)

    when i try to connect, i get a socket error message. please help!

    EDITED by Guldi: Made it sticky and changed subject to «Socket Error (11001 / 11004)»

    Last edited by guldi; July 7th, 2004 at 07:50 PM.


  4. June 7th, 2004, 03:39 AM


    #4

    New Socket Error

    I searched the socket error number like people suggested in other posts. I finally came across one person saying to put in server address 12345. Once i did that I got a whole new error message. Socket Error # 11001, Host not found. I searched this error message and found more posts on this. After reading them though, I still do not understand what it is that I have to do. Please help!! Thanks!


  5. June 8th, 2004, 05:09 AM


    #5

    Exclamation How To Fix The «Error getting network address for

    How To Fix The «Error getting network address for «…..». Cause: host not found (11001)»
    How To Fix The «Error getting network address for «…..». Cause: requested entry not found (11004)»

    An 11001 error means that the name you provided for a server in the client connection cannot be resolved to an IP address because DNS entries for that host name cannot be found. Try using the appropriate (internal or external) IP address for the server in the client connection string instead of the name.

    An 11004 error means that the name you provided for a server in the client connection cannot be resolved to an IP address because DNS entries for that host name cannot be found or connection cannot be resolved to an IP address because DNS entries for that host name are misconfigured (for example a CNAME record without an appropriate A record). Try using the appropriate (internal or external) IP address for the server in the client connection string instead of the name.

    If you need help determining your external IP address, from the TS server, bring up a browser and go to http://www.myipaddressis.com/ which will, after a moment, tell you your external IP address.

    If you need help determining your internal IP address, from the TS server, go to a command interpreter prompt (on WinNT/XP/2k3, select Start, Run and type CMD and select OK) and type in IPCONFIG (if running WinNT/XP/2k3) and press ENTER. You should see something similar to the following:

    Windows 2000 IP Configuration

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 0.0.0.0
    Subnet Mask . . . . . . . . . . . : 0.0.0.0
    Default Gateway . . . . . . . . . :

    Ethernet adapter Local Area Connection:

    Connection-specific DNS Suffix . : example.com
    IP Address. . . . . . . . . . . . : 192.168.1.60
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.254

    which displays the IP address of this machine as being 192.168.1.60 which is the internal IP address.

    Walkabout


  6. July 7th, 2004, 05:54 PM


    #6


  7. July 31st, 2004, 10:24 AM


    #7

    socket error 11004 argh

    i seem to be having the same troublke as you fellas,i keep getting this accursed socket error when i try to connect to my rented teamspeak server,i have looked for hours at stuff about dns and ports etc but can seem to find no answers in laymans terms i.e. delete this,type this etc.
    would be eternally grateful if anyone could assist me in this matter
    strange thing is i can connect to other teamspeak servers????
    wobbly


  8. August 2nd, 2004, 02:29 PM


    #8

    if anyone could assist me in this matter

    Don’t think so cause the whole system is not that trivial. And as you don’t state at which step of the process you’re getting trouble, this would take quite some time (when do people learn to ask a good SPECIFIC question, NOT «help, I don’t understand it *sigh*)
    However have you gone thorugh this thread ?


  9. August 23rd, 2004, 01:39 PM


    #9

    Ok I am also having this problem.

    Here is basicly what happens.
    I try to add a server to the list.
    I enter the ip for the server.
    I file in the rest of the stuff (names and such).
    Once all that is done I then try to connect to this server.
    I get this error warning for error #11004.

    If this is not clear enough of whats going on or what I’m doing I’m sorry. I’m a n00b+2 when it comes to TS. I also have the most current version of TS and all that stuff.


  10. August 23rd, 2004, 01:57 PM


    #10

    read the links in the posts above as well as this 1
    http://forum.goteamspeak.com/showthread.php?t=3599


  11. September 4th, 2004, 12:34 PM


    #11

    How I fixed the #11004 error

    This error seems to occur when you have a domain address such as ts2.teamspeak2server.com:8787 instead of an ip address like 123.456.789.0:8787 and I have had it happen with every address I tried, I think it may be something to do with my firewall blocking the TS2 client from accessing a DNS server so it cant resolve any domain names.

    anyway the way to resolve this is to use the IP address of the server, to find this (in windows) run c:/windows/System32/cmd.exe (or type cmd into the run window). then enter ‘ping <TSAddress>’ where <TSAddress> is the address of your teamspeak server without the port (the :8787 part on the end).
    This will respond with something like…

    Pinging <TSAddress> [IPAddress] with 32 bytes of data:

    The [IPAddress] is the address you need to use to access teamspeak, just add the port back on to the end of the address.

    And a quick example incase you dont quite understand that
    here I will use the fictional teamspeak server ‘teamspeak.server.com:8888’

    into the cmd window I’d enter:

    ping teamspeak.server.com

    and get the response:

    pinging teamspeak.server.com [121.653.892.92] with 32 bytes of data:

    then I’d use the address 121.653.892.92:8888 to connect to my teamspeak server instead of the teamspeak.server.com:8888 address and I wont get the #11004 error

    Ok I hope that helps someone, sorry for the rambling explanation.


  12. October 4th, 2004, 11:23 PM


    #12

    11004 problem

    Hi there when i’m trying to connect to this server Ps-Ts.Net, PS/OUTFIT/Black Hawks (NC M) Channel i get the old socket error 11004, now i’ve tried all the solutions in the threads about it but i get no luck, even when i got into the cmd window and do the ping thing to find it’s ip adress i get the message (ping request could not find host ps-ts.net,. please check name and try again.) if anyone could help me with this problem i would really appreciate it.

    thanks


  13. October 5th, 2004, 08:29 AM


    #13

    ****** # ping ps-ts.net
    PING ps-ts.net (217.8.144.133) 56(84) bytes of data.
    64 bytes from cD9089085.sdsl.catch.no (217.8.144.133): icmp_seq=1 ttl=51 time=78.7 ms
    64 bytes from cD9089085.sdsl.catch.no (217.8.144.133): icmp_seq=2 ttl=51 time=79.3 ms
    64 bytes from cD9089085.sdsl.catch.no (217.8.144.133): icmp_seq=3 ttl=51 time=76.6 ms
    64 bytes from cD9089085.sdsl.catch.no (217.8.144.133): icmp_seq=4 ttl=51 time=77.9 ms

    Looks like your DNS server doen’t knwo the route to this host ? You have to discuss this with your ISP


  14. October 14th, 2004, 12:43 AM


    #14

    11004 error

    a member of our clan had the same problem, when putting in the i.p he wasnt using : before the socket number at the end
    hope this helps


  15. October 14th, 2004, 12:57 AM


    #15

    any client trying to conect to a server off the default port :8767 has to enter the correct port # with the port # on end of ip like this
    68.128.256.100:8780 < made up ip the :8780 is that instance of server running on that pc and with out it you will not conect ! the port # can be any 4 numbers but has to be on end of ip with a : <— between ip and port #


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is Off
  • [VIDEO] code is Off
  • HTML code is Off

Forum Rules

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Socket error 11001 eol host not found
  • Socket error 110 connection timed out битрикс
  • Soap runtime error
  • Socket error 101
  • Soap get error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии