我的客户/服务器窗口(winsock)应用程序需要帮助. [英] I need help with my client/server window(winsock) application.

查看:72
本文介绍了我的客户/服务器窗口(winsock)应用程序需要帮助.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了这种客户端/服务器应用程序.我希望为其托管一个网站,并将服务器版本托管在同一托管位置,以节省资金.

我唯一关心的是我的应用程序的服务器版本是否会与将为从同一托管位置请求我的网站网页的浏览器提供服务的Web服务器冲突.我的意思是我的应用程序可能会拦截针对Web服务器的连接,而Web服务器可能会拦截针对我的服务器应用程序的连接请求.


简而言之,两个服务器应用程序可以在同一台计算机上共存吗?如果是这样,是否有任何必须满足的条件?

There is this client/server appication that I developed. I wish to host a website for it as well as host the sever version on the same hosting location in order to save money.

My only concern is whether the server version of my application will conflict with the web server that will service browsers that request for web pages of my website from the same hosting location. I mean is it possible for my application to intercept connection meant for the web server and is it possible for the web sever to intercept connection request meant for my server application.


In short is it possible for the two server application to coexist on the same computer? If that is the case , is there any condition that must be satisfied for this to be?.

推荐答案

是的,如果通信机制和数据存储不同,即您使用不同的TCP端口号和数据库连接字符串也不同.
Yes if the communication mechanism and data storage are different i.e. you use different TCP port numbers and the database connection strings are different.


简而言之,是的,例如,您可以在同一台计算机上运行IIS和SQLServer.
长答案需要更多细节.

网站在端口80上运行,因此IIS已使用该端口.您的应用程序将需要使用未使用的端口,始终高于20k总是好的,但是在Wikipedia上有一个已注册端口的列表: http ://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers [^ ]
如果选择未使用的端口,并正确设置防火墙,则只要有足够的RAM和其他功能,就可以在同一台计算机上托管任意数量的应用程序.

如果要同时运行端口80,则可以使用IIS来创建具有特定子域的Web应用程序,然后将其重定向到ASP.NET应用程序(但这可能不是您要执行的操作) ,请告诉我,我可以对此进行详细说明)

希望这对您有所帮助:-)
In short, yes, for example you can run IIS and SQLServer on the same machine.
The long answers requires some more details.

Websites run on port 80, so IIS uses that already. Your application will need to use an unused port, somewhere high above 20k is always good, but there is a list on wikipedia with registered ports: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers[^]
If you pick an unused port, and set the firewall correctly you can host as many applications on the same machine as you like, provided you have enough RAM and whatnot.

If you want to have both run port 80, then you can use IIS to make a webapplication, with a certain subdomain, and redirect that to an ASP.NET application (but that is probably not what you would want to do, if it is, let me know and I could explain more on that)

Hope this helped you on your way :-)


这篇关于我的客户/服务器窗口(winsock)应用程序需要帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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