远程桌面顾问/查看器/连接 [英] Remote Desktop Advisor / Viewer / Connection

查看:106
本文介绍了远程桌面顾问/查看器/连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个不使用winstock或任何其他奇特的东西的远程桌面程序.我需要它尽可能基本.
到目前为止,我的项目仅查看连接的另一台计算机(另一系统的桌面).这非常好且快速,但我迫切需要找到如何通过实时网络(如Internet)进行连接的方法.
我的项目只能连接到我的家庭网络上的计算机,但这没有用.

我有一个服务器和一个客户端模块,但它们仅在本地网络上连接.

如果您有任何建议,我将不胜感激.

我的一些代码是........

Hi

Ihave a remote desktop program that does not use winstock or any other fancey stuff. i need it to be as basic as possible.
So far my project only views the other computer connected (the desktop of the other system). This works very well and fast but i desperately need to find out how to connect over live networks like the internet.
My project can connect to comupters on my home network only but this is no use.

I have a server and a client module but they only connect on local networks.

If any of you have any suggestions i would be greatfull.

some of my code is........

Dim CLIENT As New TcpClient
  Dim SERVER As New TcpListener(8085)
  Dim Nstream As NetworkStream
  Dim LIstening As New Thread(AddressOf listen)
  Dim GetImage As New Thread(AddressOf recieveImage)

  Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)   Handles btnConnect.Click
      Try
          CLIENT.Connect("127.0.0.1", 8085)
      Catch ex As Exception
          MsgBox("Connection failure...")
      End Try
  End Sub




C#示例也将很有用.
预先感谢您




C# examples would be useful also.
thank u in advance

推荐答案

正如Ed所指出的,您需要在行中更改IP地址
As Ed pointed out, you need to change your IP address in the line
CLIENT.Connect("127.0.0.1", 8085)


成为您要连接的计算机的公共IP地址,例如:


to be the public IP address of the machine you want to connect to like so:

CLIENT.Connect("85.37.21.143", 8085)


您还需要在客户端路由器上设置端口转发,以将该端口转发到适当的内部计算机.最后,您需要确保所有防火墙(在路由器和PC级别)都允许该流量不受阻碍地通过.

这实际上不是编程问题,而是网络配置问题.您需要正确设置路由器(在目标端),然后就可以了(一旦更改IP地址).


You will also need to set up port forwarding on your client''s router to forward that port to the appropriate internal machine. Finally, you will need to make sure that all the firewalls (at the router and at the PC level) allow that traffic to flow through unhindered.

This isn''t really a programming problem but rather a network configuration issue. You need to set your router up properly (at the destination end) and then you will be fine (once you change the IP address).


这篇关于远程桌面顾问/查看器/连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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