Simple network communication actual combat sharing (1)

Some complaints

I have always been most afraid of the development of some net-related functions. Most of the time is spent on developing some stand-alone games and researching visually cool effects. I remember when I was a complete novice, because I didn't know how to build a network environment, even if it was a very simple one, I couldn't start. I have always wanted to make a game that can be connected, but it hasn't been realized until now... Okay, let's not talk about it. Next, I will share with you an example of novice level, network communication.

Sharing part:

1. Use IIS to build a communicable environment
2. Use Socket to make a simple communication in Unity

1. Use IIS to build a communicable environment (Win10):

In fact, many versions of this one can be found on Baidu, but not all of them can be used when configured. Here is a way to use it in the pro-test.
1. Open "Control Panel" "Enter "Programs and Features" in the upper right corner box "Click "Programs and Features"
2. Find "Turn Windows features on or off" on the "Programs and Features" page
Insert picture description here
3. Check these options Okay, make sure to restart (mine is all ticked inside)
Insert picture description here
4. Go to "Control Panel", search for "Administrative Tools" and
Insert picture description here
5. Then right click to add website
Insert picture description here
Insert picture description here
6. If it is Win10, select these and select "Advanced Settings"

Insert picture description here
7. Set it up:
Insert picture description here
Insert picture description here
Insert picture description here
8. Add an index.html page randomly under the given physical path.
Insert picture description here
9. Then visit the path.
Insert picture description here
10. Ok, the first step is successful.

Reserved reference address:
https://baijiahao.baidu.com/s?id=1605299707072805920&wfr=spider&for=pc
https://blog.csdn.net/ww1351646544/article/details/87639939

Guess you like

Origin blog.csdn.net/ww1351646544/article/details/104018639