|
查看: 1060|回复: 2
|
tcpclient connection error
[复制链接]
|
|
|
我没有network programming experience.可是还是要做。。。遇到问题,看不懂solution只好找个位帮帮忙。。。
我遇到error code 10049,"The requested address is not valid in its context",
上网找到下面的solution可是不明白我要怎么做。。。可以教我吗 ?
“The problem was that TcpListener can't listen on an external (or WAN) IP. For anyone else who has this problem (with a router):
You need to
1. Have your tcpListener listen on your computer's local IP, and a specified port.
2. Set up your router to forward incoming requests for that port to your computers IP.
3. Have your TcpClient or Socket connect to your WAN IP, and the same port number.” |
|
|
|
|
|
|
|
|
|
|
发表于 19-9-2008 11:34 AM
|
显示全部楼层
|
是不是你用的port已经被其它program用了。。。 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 19-9-2008 12:37 PM
|
显示全部楼层
原帖由 sinz 于 19-9-2008 11:34 AM 发表 
是不是你用的port已经被其它program用了。。。
谢谢。。。
现在没有那个error 了。。。
可是我的wireless 还是不能完全work.
现在的情况是
client send data to host --OK
host send data to client --NG
刚找到一个software named Microsoft Network Monitor 3.1, 也是看到host send data to client 那边中断。。。
会用这个software 来分析吗?可以教我吗?
[ 本帖最后由 hlin22 于 19-9-2008 01:22 PM 编辑 ] |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|