我跟踪了一下你的程序,发现可能是下面两个错误:
ErrorCode 10048--你很可能试图用一个已经被使用的IP地址/端口
ErrorCode 10049--你试图用非本机的IP下面是msdn的详解:
WSAEADDRINUSE (10048)
Address already in use.
Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application attempts to bind a socket to an IP address/port that has already been used for an existing socket, or a socket that was not closed properly, or one that is still in the process of closing. For server applications that need to bind multiple sockets to the same port number, consider using setsockopt(SO_REUSEADDR). Client applications usually need not call bind at all—connect chooses an unused port automatically. When bind is called with a wildcard address (involving ADDR_ANY), a WSAEADDRINUSE error could be delayed until the specific address is committed. This could happen with a call to another function later, including connect, listen, WSAConnect, or WSAJoinLeaf. WSAEADDRNOTAVAIL (10049)
0ACannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local machine. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote machine (for example, address or port 0).
ErrorCode 10048--你很可能试图用一个已经被使用的IP地址/端口
ErrorCode 10049--你试图用非本机的IP下面是msdn的详解:
WSAEADDRINUSE (10048)
Address already in use.
Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application attempts to bind a socket to an IP address/port that has already been used for an existing socket, or a socket that was not closed properly, or one that is still in the process of closing. For server applications that need to bind multiple sockets to the same port number, consider using setsockopt(SO_REUSEADDR). Client applications usually need not call bind at all—connect chooses an unused port automatically. When bind is called with a wildcard address (involving ADDR_ANY), a WSAEADDRINUSE error could be delayed until the specific address is committed. This could happen with a call to another function later, including connect, listen, WSAConnect, or WSAJoinLeaf. WSAEADDRNOTAVAIL (10049)
0ACannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local machine. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote machine (for example, address or port 0).
解决方案 »
- c# WebBrowser如何去掉最大化按钮
- iframe中显示WPF的问题
- DropDownLisst无刷新
- 面试题,求高手解决?
- 菜鸟问一个水晶报表的奇怪问题!!给100分!!
- C#中定义字符串
- c#如何得到sql里encrypt()生成的字符串(急)
- --==我才开始转VS2005,不知道在2005中如何将aspx文件与cs文件分开,将编译好的类库供aspx调用==--
- 请教WinForm的DataGrid中,如何让某个格myRow[xxx]不可编辑,并且显示为空白?
- GDI+的用TextureBrush的小图像填充矩形的问题
- 急急急!谁有.net 正式版的注册号?100分酬谢!
- 如何建立和调用数据库?
问题解决了,散分