尝试使用 Rug.OSC 连接到 Web 套接字会引发异常
.NET核心3.1 错误:
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.Private.CoreLib.dll
An attempt was made to access a socket in a way forbidden by its access permissions.
代码:
IPAddress address = IPAddress.Parse("127.0.0.1");
int port = 9000;
OscSender sender = new OscSender(address, port);
sender.Connect();
Console.WriteLine("Setting up notification listeners...");
这是一个控制台应用程序,我需要添加一些权限吗?
.NET Core 3.1
Error:
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.Private.CoreLib.dll
An attempt was made to access a socket in a way forbidden by its access permissions.
Code:
IPAddress address = IPAddress.Parse("127.0.0.1");
int port = 9000;
OscSender sender = new OscSender(address, port);
sender.Connect();
Console.WriteLine("Setting up notification listeners...");
This is a console application, is there some permission I need to be adding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论