Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the preparations for the development resources and environment of asp.net Wechat public platform?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

What this article shares with you is about the preparation of the resources and environment for the development of asp.net Wechat public platform. The editor thinks it is quite practical, so I share it with you for study. I hope you can get something after reading this article. Without saying much, let's take a look at it with the editor.

What is intranet penetration?

It means that the external network can access the local IIS site through the domain name!

Software environment:

Windows10+IIS10

(configure the local site to IIS10 as a backup, publish the site not as a tutorial)

Knowledge point: peanut shell (main) ngrok starts:

First publish the site to IIS. Here, I publish the site to the local IIS, and bind the port to: 8081. You can use the default 80.

I think there are two relatively simple intranet penetration software: peanut shell and Ngrok.

Download peanut shell

Ngrok download

1. Peanut shell (minimum charge of 6 yuan)

Peanut shell configuration is simple, interface operation, need to spend 6 yuan, 6 yuan file only supports telecom network, I deliberately spent 6 yuan to test, the process is roughly as follows:

1. After installing the peanut shell, open the software

two。 Click on the domain name list and you will see a free second-level domain name given by him. The first time you click on it is the interface that pays 6 yuan.

3. Private network traversal-add mapping

Simple configuration, so that you can access the local IIS site through ymnets.imwork.net, you can see the simple configuration

2.Ngrok (free of charge)

Ngrok, it is free, and the configuration is not very complicated.

Address: https://dashboard.ngrok.com/user/login

Sign up for an account, and click the download software (4MB) above. After decompressing the software, open it:

At this time, you should have two interfaces: software interface and website interface.

Software interface:

Website interface:

1. Click the Auth of the tab tab

Copy 2.Copy Token into the software interface

Ngrok authtokenNL....j1KY

Successfully saved a yml file

3. Enter the command again: ngrok http 8081

Note: the port configured by IIS above here is 8081. You may be another port. You need to set it according to the actual situation and support port 80.

At this time, it will jump out of the following interface to indicate success.

4. Open: http://127.0.0.1:4040/inspect/http

You can see that there are 2 sites, this is the address where the external network can access the local IIS site!

5. Fixed domain name

The above domain names all change, which means that every time we run, we have to configure the site address for debugging. If we need a fixed domain name, we need to pay to get a fixed domain name.

Address: https://dashboard.ngrok.com/billing/plan

Then through the command:

Ngrok http-subdomain=inconshreveable 8081 Forwarding http://inconshreveable.ngrok.io-> 127.0.0.1:80Forwarding https://inconshreveable.ngrok.io-> 127.0.0.1 ngrok http 80

Finally, you can access it by customizing the domain name of http://inconshreveable.ngrok.io.

Summary:

1. All fixed domain names need to be paid, and peanut shells are cheaper than others.

two。 If your network allows, then using peanut shells, it feels that the domestic domain name is still faster.

3. Free of charge, you can also use ngrok for Wechat development and debugging.

4.ngrok is unstable. Sometimes there will be network opening errors. I don't know if it is my personal network problem.

5. All the subsequent tests are peanut shell tests.

These are the preparations for the resources and environment for the development of asp.net Wechat public platform. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report