在线服务器上的TCP聊天服务器 [英] TCP Chat server on online server

查看:144
本文介绍了在线服务器上的TCP聊天服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中使用TcpClient和TcpListener创建了一个聊天应用程序。

当我在计算机上运行服务器时,一切正常。



我想在互联网上在线托管服务器应用程序,比如GoDaddy.com,以便可以从任何地方访问它。



这可能吗?如果没有,还有其他选择吗?



聊天服务器是一个.NET控制台应用程序。

解决方案

你需要雇用一个具有固定IP地址的共享服务器(许多Web主机将提供这些)。您需要注册一个域,使其指向您的服务器(比如chat.yourdomain.com),您的应用需要在此计算机上运行,​​并且需要连接到该计算机上的该端口。

I have created a chat application using TcpClient and TcpListener in Visual Studio.
All works fine when I run the server on my computer.

I want to host the server application online on the Internet, like GoDaddy.com, so that it can be accessed from anywhere.

Is this possible? If not, any other alternatives?

The chat server is a .NET console application.

解决方案

You'll need to hire a shared server with a fixed IP address (a lot of web hosts will offer these). You need a domain registered such that it points to your server (say chat.yourdomain.com), your app needs to run on this machine listening to its given port, and your chat client needs to connect to that port on that machine.


这篇关于在线服务器上的TCP聊天服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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