isontheline / pro.webssh.net

iOS / iPadOS / macOS SSH Client
https://apps.apple.com/us/app/id497714887
MIT License
316 stars 46 forks source link

.local unsupported? #1091

Closed DDoS closed 7 months ago

DDoS commented 7 months ago

Bug description

I'm trying to connect to a device on my local network using a ".local" address. I can ping it (from the app), but connections fail on DNS resolution. Is this unsupported?

Steps to reproduce

  1. Add a connect to a ".local" host
  2. Try to connect
  3. Error is thrown
  4. Try to ping
  5. No error
isontheline commented 7 months ago

Hello @DDoS 👋

Good catch! If will check it and make a fix asap

isontheline commented 7 months ago

Hello @DDoS 👋

I'm able to connect to .local address out of the box (mba3arnaud.local) :

Image

Could you send me your fail logs of WebSSH? I would like to see it it's related to IPv6 please

isontheline commented 7 months ago

IPv6 over IPv4 could be changed inside settings :

Image

DDoS commented 7 months ago
<EngineLog>
  <Connect_Ssh>
    <EngineVersion>9.5.0.97</EngineVersion>
    <EngineStatus>2</EngineStatus>
    <connectInner>
      <hostname>fe80::895b:1388:8d37:61df%en0</hostname>
      <port>22</port>
      <sshConnect>
        <connectSocket_v2>
          <connect_domain>
            <ckDnsResolveDomainIPv6_n>
              <namservers>
                <ip>1.0.0.1</ip>
                <ip>1.1.1.1</ip>
              </namservers>
              <error>No valid DNS answer...</error>
            </ckDnsResolveDomainIPv6_n>
            <ckDnsResolveDomainIPv4_n>
              <dnsHostsFileLookup>
                <domainName>fe80::895b:1388:8d37:61df%en0</domainName>
              </dnsHostsFileLookup>
              <namservers>
                <ip>1.0.0.1</ip>
                <ip>1.1.1.1</ip>
              </namservers>
              <error>No valid DNS answer..</error>
            </ckDnsResolveDomainIPv4_n>
          </connect_domain>
        </connectSocket_v2>
        <error>Failed to establish initial TCP/IP connection</error>
        <hostname>fe80::895b:1388:8d37:61df%en0</hostname>
        <port>22</port>
      </sshConnect>
    </connectInner>
    <error>Failed.</error>
  </Connect_Ssh>
</EngineLog>

I'll try changing the setting, I'll post and update

DDoS commented 7 months ago

Changing to IPv4 first fixed it.

isontheline commented 7 months ago

Thanks for your feedback @DDoS 🙏