VB.net TCP Server \ Client(客户端获取服务器ip的方式) [英] VB.net TCP Server\Client (way for client to get server ip)

查看:538
本文介绍了VB.net TCP Server \ Client(客户端获取服务器ip的方式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在过去的6个月中,我一直在构建tcp文件Server \ Client
一切顺利,我想补充一件事,这是客户端获取服务器IP的一种简便方法.


因此,我认为,一种快速简便的方法是,服务器每次启动或ip更改时,将其IP发送到Hotmail或Gmail帐户
然后让客户端获取最新的电子邮件并读取服务器IP.

我已经看了几天,现在找不到任何快速简便的方法来发送和获取邮件,是否有一种快速的方法,或者还有一种更好的方法来使客户端获取服务器ip.

Hey everyone,

For the past 6 months i have been building a tcp file Server\Client
all is well its working well one thing i would like to add to it is a easy way for the client to get the IP of the server.


So i figered that a fast and easy way would be for the Server to send its IP to a Hotmail or Gmail account every time it starts up or it ip changes
then have the client get the newest email and read the server IP.

I have looked and looked for days now and i can''t find any fast and easy way to send and get the mail is there a fast way or is there a beter way to for the client to get the server ip.

推荐答案

我的文章将为您提供帮助.
管理拨号连接 [
My article will help you..

Managing Dialup connection[^]


对不起,我想你错过了吗

我的意思是服务器将其ip发送到管理员设置的电子邮件地址,然后当他向客户发送邮件时,将有一个包含电子邮件信息的XML,然后每次客户端尝试连接时,如果它无法发送,它将检查电子邮件以获取更新的服务器IP.


我希望这样,因为我的IP每隔几天会更改一次,这会使我的朋友很难连接,自动取款机我只是用新的IP向他们发送电子邮件
但是发送电子邮件很麻烦,所以我想知道有一种方法可以用代码来完成并将其构建到我的服务器中.
no sorry, i think u missunder stood

what i mean is that the server sends its ip to an email addrees that the admin sets up then when he ship the clients there will be an XML with the email info, then every time the client trys to connect if it cant it will check the email for an updated server ip.


i want it like this coz my ip changes every few days and it will make it hard for my friends to connect, atm i just send them an email with my new ip
but its a pain to send an email so i figered there would be a way to do it with code and build it in to my server.


这篇关于VB.net TCP Server \ Client(客户端获取服务器ip的方式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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