简体   繁体   English

在两台计算机上运行Web服务和客户端

[英]Run Web-Service and Client on two computers

I have to run my Web-Service project on two computers. 我必须在两台计算机上运行Web服务项目。 I have created very simple project with tutorial helps, but it working only on localhost. 我使用教程帮助创建了一个非常简单的项目,但它仅在localhost上有效。 Next thing I have to do is create a local network, where on first computer I will run web-server and second will be a client. 接下来,我要做的是创建一个本地网络,在第一台计算机上,我将运行Web服务器,第二台将是客户端。 Do you have some ideas how to do this? 你有一些想法如何做到这一点? I'm new in C# and WS technology. 我是C#和WS技术的新手。

You can setup a Virtual Machine on your Computer to simulate a small local network. 您可以在计算机上设置虚拟机以模拟小型本地网络。 The server socket must be bind to your network ip address or just 0.0.0.0, so that it is reachable from everywhere. 服务器套接字必须绑定到您的网络IP地址或仅绑定到0.0.0.0,以便可以从任何地方访问。 It would help to post some code here, to show what you already have done. 这将有助于在此处发布一些代码,以显示您已经完成的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM