How To Fix GW664 - Host name is not known


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GW - Message Texts for Gateway

  • Message number: 664

  • Message text: Host name is not known

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GW664 - Host name is not known ?

    The SAP error message GW664 "Host name is not known" typically indicates that the SAP system is unable to resolve the hostname of a server or service that it is trying to connect to. This can occur in various scenarios, such as when trying to connect to an external system, a database, or even when accessing services within the SAP landscape.

    Causes:

    1. DNS Issues: The hostname may not be correctly configured in the Domain Name System (DNS), or the DNS server may be unreachable.
    2. Incorrect Hostname: The hostname specified in the configuration may be incorrect or misspelled.
    3. Network Configuration: There may be network issues preventing the SAP system from reaching the DNS server or the target host.
    4. Hosts File: The hostname may not be listed in the local hosts file (e.g., /etc/hosts on Unix/Linux or C:\Windows\System32\drivers\etc\hosts on Windows).
    5. Firewall or Security Settings: Firewalls or security settings may be blocking access to the hostname.
    6. SAP Configuration: Incorrect settings in the SAP system configuration (e.g., RFC destination settings) can lead to this error.

    Solutions:

    1. Check Hostname: Verify that the hostname is correct and properly spelled in the configuration.
    2. DNS Configuration: Ensure that the DNS server is reachable and that the hostname can be resolved. You can use commands like nslookup or ping to test hostname resolution.
    3. Update Hosts File: If the hostname is not resolvable via DNS, consider adding an entry to the local hosts file with the correct IP address and hostname.
    4. Network Connectivity: Check network connectivity to ensure that there are no issues preventing access to the DNS server or the target host.
    5. Firewall Settings: Review firewall settings to ensure that they are not blocking access to the hostname.
    6. SAP Configuration: Review the SAP configuration settings, especially for RFC destinations, to ensure that they are set up correctly.
    7. Restart Services: Sometimes, restarting the SAP services or the application server can resolve transient issues.

    Related Information:

    • SAP Notes: Check SAP Notes for any specific guidance or patches related to this error message.
    • Logs: Review the SAP system logs (transaction SM21) and the developer traces (transaction ST22) for additional context or related errors.
    • Network Tools: Use network diagnostic tools to troubleshoot connectivity issues, such as traceroute or telnet to check if the target host is reachable on the required port.

    If the issue persists after trying the above solutions, it may be beneficial to consult with your network administrator or SAP Basis team for further investigation.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:
  • GW640 Internal SAP gateway error
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • GW639 Failed to send datagram
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • GW665 Service name is not known
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • GW666 Error occurred in the SAP network interface
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker