文芹's profile能吃是福PhotosBlogLists Tools Help

Blog


    August 02

    远程桌面连路由器后面的电脑

    好久没有干成过什么事情, 终于在前天干了件高兴的事: 让家里的pc可以随时被公网电脑远程桌面连上.
    介绍一下: 我家网络和外网之间隔着一个路由器.

    答应过一个朋友好了教他. 所以直接写个攻略. 一切正常的话很简单, 昨晚上耗俺google加设置一共十分钟, 写这帖子估计得20分钟. 我是新手, 照别人说的做的, 没想到这么容易就好了.

    没写明白的可以问我. 有什么建议我热烈欢迎.

    1, 首先保证家里台式机可以被远程桌面. 在系统属性有个remote选项卡, 勾上allow users to remotely connect to this computer, 然后确定或者应用.
    然后在家里内部的网络测试一下, 保证能用了.如果还有什么防火墙之类的东西, 保证允许远程桌面.

    2, 连到router(路由器). 就是在浏览器窗口敲router的ip, 然后就会问你用户名和密码. IP和默认用户名密码取决于路由器型号以及服务提供商(比如comcast)的设定, 可以google 之或者打电话问. 比如我家的是192.168.1.1.

    3, 这个不是必须的, 是我喜欢这样而已:
    连上router 之后先把默认密码给改了, 这样比较安全. 然后打开允许远程管理 remotely management.  应该会告诉你端口号, 比如8080. 然后随便找台电脑测试.比如在浏览器窗口敲 http://64.12.345.678:8080, 其中64.12.345.678 是router得到的公网ip, 不是步骤2里面那个. 然后会问router的用户名和密码. 能连上就对啦.

    4. 去dyndns.com 搞个免费的dynamic DNS (动态域名解析)的账户. 搞完了你应该知道自己的host name, 比如pigsfly.dyndns.org, 其中pigsfly是你申请的 (如果别人抢过这个域名, 你就弄不到啦)

    5, 连上router, 启用dyndns(据说不是每种router都支持dynamic DNS 这个得查查). 会问host name以及用户名密码. 然后测试: 如果你做过步骤3, 现在浏览器的地址栏敲http://pigsfly.dyndns.org:8080, 如果还可以连上你的router, 就表示动态域名解析好啦.

    注: 为什么要用动态域名解析呢? 因为comcast分给咱的IP会变. 除非你想每次在家都看一下公网ip变成什么了,不然还是弄个不变的域名比较好.

    6. 连上router (远程或者像步骤2那样连都可以), 在端口映射 (port forwarding) 那里设TCP 3389 端口 都forward 到你想要远程桌面的台式机的地址, 比如192.168.1.123


    这样就好了. 在家外想远程桌面家里机器的时候访问dyndns提供的host name (比如pigsfly.dyndns.org) 就好了.

    当然还可以改默认端口号什么的啦. 我懒得写啦.

    开网站服务器和FTP服务器也类似, 比如在家里台式机上装serv-u,开ftp服务,路由器设置端口映射,动态域名解析已经设好, ftp应该就可以公网访问啦.

    有个好玩的: 远程桌面同一台电脑, 立马就疯了...拔了网线才正常过来...

    Comments (8)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    W.Q. Daiwrote:
    赞技术贴~
    Aug. 4
    Haoxiang Zwrote:
    纯技术贴 不懂 鉴定完毕
    Aug. 4
    Peter RENwrote:
    good!
    Aug. 4
    文芹 王wrote:
    缺某个东西的时候还是可以用的. 我不想随时同步两台电脑的几个硬盘
    Aug. 3
    yuning wuwrote:
    很早以前搞过,现在都忘了,基本用不上
    Aug. 3
    文芹 王wrote:
    是xp..不熟vista
    Aug. 3
    Lanwrote:
    你是vista么,我那天搞了半天也没搞出来(我要用我的mac连vista),ip怎么怎么找阿
    Aug. 2
    Suminwrote:
    疯了是啥表现?
    Aug. 2

    Trackbacks

    The trackback URL for this entry is:
    http://terichina.spaces.live.com/blog/cns!3915B137041AD0BB!4274.trak
    Weblogs that reference this entry
    • None