Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
352 views
in Technique[技术] by (71.8m points)

为什么创建ServerSocket失败?

ServerSocket myServerSocket = new ServerSocket();
通常情况下我是可以正常创建的,但是,偶尔会出现如下错误并且创建失败:
clipboard.png
这个报错我在google上也进行过搜索,按照报错提示是没有网络,但是我确定我是有网络的,并且这个错误只有我在重启应用之后才能恢复正常创建,就是说如果我的应用一直没有重新打开,就一直会创建失败,非常困惑(我不知道针对这个问题,我是否需要提供更多代码)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...