📌  相关文章
📜  错误连接拒绝端口 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:43.347000             🧑  作者: Mango

代码示例1
Connection refused means that the port you are trying
to connect to is not actually open. 

WINDOWS SOLUTION
To check if your program is listening on a port, use the command

netstat -aon | find /i "listening"

now look through the ip addresses on the left to see if the 
port you are looking at is open.
If the port isn't open, well, i guess you'd have to work out
how to open it then.