无法连接到远程主机

无法连接到远程主机

当我尝试做

lynx -dump http://127.0.0.1:13013/cgi-bin/sendsms?username=kan&password=abc&to=[recipient%20no]&text=[text]

这是出现的错误。

Looking up 127.0.0.1:13013
Making HTTP connection to 127.0.0.1:13013
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://127.0.0.1:13013/cgi-bin/sendsms?username=kan&password=abc&to=[recipient%20no]&text=[text]

答案1

我猜你正在尝试使用坎内尔。它没有监听该端口。请检查它是否正在运行,以及是否配置为监听端口 13013。

答案2

错误消息表明无法连接到 127.0.0.1:13013,因此最好的起点是查看是否确实有一个服务正在监听该端口。

您正在使用什么服务来尝试发送这些短信?该服务正在运行吗?

发出 netstat -l -n 并检查是否有一项内容

proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:13013          0.0.0.0:*               LISTEN

如果没有,则表示您尝试使用的服务未启动,或者已启动但使用其他端口。您需要启动它或确保您使用的是正确的端口。

相关内容