如何使用C#获取主机名和端口号 [英] how to get the host name and port number using C#

查看:258
本文介绍了如何使用C#获取主机名和端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我如何使用C#

Hi guys, how do i get the host name and port number using C#

推荐答案

什么?我们应该读懂您的想法吗?

如果您在谈论客户端应用程序正在寻找要使用的服务器,则通常会在两个文本框中询问此人的主机名和端口.但这当然完全取决于您在说什么.
Of WHAT???? Are we supposed to read your mind or something?

If you''re talking about a client-side app looking for a server to use, you would normally ask the person for the hostname and port in a couple of textboxes. But, that, of course, depends entirely on what you''re talking about.


查看套接字 [ ^ ]类.
Check out RemoteEndPoint[^] under Socket[^] class.


这篇关于如何使用C#获取主机名和端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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