修改/通过互联网传输文件 [英] Revised / File Transfer Through Internet

查看:83
本文介绍了修改/通过互联网传输文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我在VC#2008中开发了一个文件传输项目.它在地方网络上运作商品.但无法上网.任何人都可以帮助我,并提供一些示例代码.请 .当我通过Internet连接服务器时,出现以下消息:连接尝试失败,因为一段时间后连接方未正确响应,或者由于连接的主机未能响应192.168.1.2:8011而建立连接失败.我的计划会怎样?

问候
naser

Hello Friends

I developed a file transfer project in VC#2008. It works goods on loacal network. but failed to internet. any one help me and give some sample code. please . When I connect the server through internet i get the message below "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.2:8011 . what happen my programme.

regards
naser

推荐答案

浏览下面的链接可能会对您有所帮助

http://www.codeproject.com/KB/cs/SocketApplication.aspx [ ^ ]
Go through the below link this may helps you

http://www.codeproject.com/KB/cs/SocketApplication.aspx[^]


当我通过Internet连接服务器时,出现以下消息:连接尝试失败,因为连接的用户在一段时间后未正确响应,或者由于连接的主机未能响应192.168.1.2:8011而建立的连接失败

可能是您忘记了在TCP客户端程序中更改公用IP ..,我认为(192.168.1.2:8011)这不是公用Internet IP,这是您的客户端程序在寻找.....
When I connect the server through internet i get the message below "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.2:8011

May be you are forget to change the Public IP in your TCP Client Program.., i think (192.168.1.2:8011) this is not public internet IP, which is your client program looking for.....


这篇关于修改/通过互联网传输文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆