到动态服务器
我想在winxp+(Windows XP以上)中用VB6+(VB6以上)进行开发和应用。客户端必须连接或重新连接到服务器应用程序。
如何连接动态IP的服务器?
I want to develop and application in VB6+ (VB6 upwards) in winxp+ (Windows XP upwards). The client has to connect or reconnect to a server application.
How do I connect to the server whose IP is dynamic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过让服务器告诉您的客户端其 IP,例如,通过使用众多动态 DNS 服务之一为其提供域名,或者使用您自己的具有已知地址的服务器来存储动态服务器的 IP 地址。
By having the server tell your client about its IP, for example by using one of many dynamic DNS services to give it a domain name, or by using a server of your own with a known address to store the IP address of your dynamic server.
通过网络以UDP数据报包的形式广播或多播服务器的IP地址,并将客户端加入多播组;客户端可以知道服务器的地址。从而可以连接
With the help of broadcasting or preferrably multicasting the server's ip address in form of UDP datagram packets over network and join the client with the multicast group; client could know the address of the server. And thus could connect