If you cannot connect to your device through Soracom Napter, first check the common causes below: an expired session, network restrictions, incorrect encryption settings, mismatched ports, device-side firewalls, or unsupported protocols. If these checks do not solve the problem, use the Napter Audit Logs to find where the connection fails.
Common Connection Issues
The Napter Session Has Expired
Soracom Napter provides temporary remote access with a time limit that you set (up to 8 hours). If your connection drops or is refused, the session may have expired.
Resolution: Disconnect your client and create a new Napter session in the User Console.
Network Restrictions (Corporate Firewalls and Proxies)
If you connect from a corporate network, strict security policies may block the random ports or IP addresses that Napter assigns.
Resolution: Ask your network administrator to confirm that no proxy or firewall blocks traffic to the destination IP address and port of the Napter session.
Incorrect TLS Configuration
Napter offers Transport Layer Security (TLS) offloading for unencrypted protocols such as HTTP. However, TLS offloading can interfere with protocols that handle their own encryption, such as Secure Shell (SSH) and Remote Desktop Protocol (RDP).
Resolution: Choose the encryption settings that match your protocol:
- SSH or RDP: Select My IoT device's connection is encrypted (HTTPS/SSH). Do not enable TLS offloading for these protocols.
- HTTP: Select My IoT device's connection is unencrypted and enable Enable encryption (TLS) between Soracom Napter and the client.
Mismatched Device Ports
The port you specify when you create the Napter session must match the port your device's service listens on.
Resolution: Verify the target port. Common defaults include:
- SSH: 22
- HTTP: 80
- RDP: 3389
- VNC: 5900
For more details, see Using Napter.
Device-Side Firewalls
Even when Napter works correctly, the device itself may block the incoming connection.
Resolution: Check the firewall on the device, such as iptables on Linux or Windows Firewall. Make sure the device accepts incoming traffic on the cellular interface for the port you are accessing.
Unsupported Protocols
Soracom Napter supports TCP only. UDP and ICMP (ping) are not supported through Napter.
Resolution: Make sure your application uses TCP.
SSH Error: "kex_exchange_identification: Connection closed by remote host"
If your SSH client returns kex_exchange_identification: Connection closed by remote host, check the following, as described in Using Napter:
-
Connectivity: From the device, ping
pong.soracom.ioto confirm that the device can communicate over the cellular connection. - Username: Confirm that you are using the correct SSH username for the device.
- Listening port: Confirm that the SSH service on the device is listening on the port you specified in the Napter session.
- Session expiry: Confirm that the Napter session has not expired.
- Allowed IP range: Confirm that the global IP address of the computer you are connecting from is within the allowed IP address range of the session.
Troubleshooting with Napter Audit Logs
If the checks above do not resolve the issue, use the Napter Audit Logs to pinpoint where the connection fails.
Napter Audit Logs are disabled by default, and events are only kept for 24 hours. To keep logs for 1 year, click Subscribe on the Napter Audit Logs screen. See Enabling Napter Audit Logs.
How to Retrieve Audit Logs
- Identify your global IP: Visit a site such as ifconfig.me to find the global IP of the computer you will connect from. If it is the same computer you use for the User Console, you can leave the IP address range(s) field blank and it will be set automatically. Otherwise, enter a CIDR range that includes this IP. See Using Napter.
-
Note the connection details: When you create the Napter session, record the assigned IP address and port (for example,
3.12.34.56:12345). - Attempt the connection: Try to access the device using the Napter connection details.
- Open the logs: Log in to the User Console. From the Menu, under Logs & Statistics, select Napter Audit Log.
- Review the events: Look for the events generated during your connection attempt.
You can also export audit logs with the getNapterAuditLogs API or the soracom audit-logs napter get CLI command. This is useful when you need to share logs with Soracom support.
Interpreting Log Events
The event type in the logs shows the stage at which the connection failed.
Scenario 1: No ACCESS Event Logged
You see events such as CREATED, DELETED, or EXPIRED, but no ACCESS event.
Cause: Traffic is not reaching the Soracom platform. This usually means your local network (the network you connect from) is blocking the outbound connection to the Napter IP address and port.
Resolution: Verify that your local network allows access to the destination IP address and port you noted in step 2.
Scenario 2: DENIED or REFUSED Events
- DENIED: The connection reached Soracom but was blocked because the source IP address did not match the allowed IP range set when the session was created.
- REFUSED: Napter detected a large number of connection requests within a short period (for example, repeated attempts from IP addresses outside the allowed range) and rejected the connection. See Napter Audit Logs and Napter Error Logs.
Resolution:
- Check the Source IP field of the log entry (or the
srcAddressfield under Log Details in the Napter error logs). Compare it with your current global IP. - If your IP has changed or was entered incorrectly, create a new Napter session with the correct source IP range.
Scenario 3: CONNECTED Event Logged
The CONNECTED event means Soracom successfully forwarded the traffic to your device. If you still cannot access the service, the issue is on the device side or in the protocol configuration.
Potential causes:
- TLS mismatch: You enabled TLS offloading for a protocol that does not support it, or did not enable it for a protocol that needs it.
- Wrong port: The service on the device is not running on the port you specified.
- Routing: The device sends return traffic through a different interface (for example, Wi-Fi or Ethernet) instead of the cellular interface.
- Device firewall: The device is dropping the packets.
- Service down: The application (for example, the web server or SSH daemon) is not running.
Advanced Troubleshooting with Soracom Peek
If the audit logs show CONNECTED but access still fails, you may need to analyze the actual network packets.
Soracom Peek captures IP packets passing between the Soracom platform and your device, without installing software on the device. Use Peek to confirm whether the device receives the request and whether it sends a response back.
Contacting Support
If you cannot resolve the issue after following these steps, create a support request and include the following details to help speed up the investigation:
- International Mobile Subscriber Identity (IMSI): The IMSI of each SIM experiencing the issue.
- Device details: Manufacturer, model number, and product name.
- Timestamp: The exact date and time the issue occurred.
- Logs: A screenshot or export of the Napter Audit Log.
- Description: A detailed description of the error and the steps you have taken.
- Packet capture (pcap): A pcap file from Soracom Peek, if available.