> For the complete documentation index, see [llms.txt](https://trialkey.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trialkey.gitbook.io/docs/api-reference/methods/remotehostname.md).

# RemoteHostName

## Description

Returns the remote hosts name for the specified socket handle.

{% hint style="info" %}
**Good to know:** This is the FQDN for the host.
{% endhint %}

## Remarks

Use this method to retrieve the remote host's machine name. This method can take a few seconds to execute, and is synchronous (will not return execution to your code until it is done). Calling this method on every connection in a multiple connection client or server can impact performance.

## Prototype

CHAR\* CSockQ::RemoteHostName(long SocketHandle)
