Build an intranet WCF service with NAT123 and implement an Android app to access a simple performance test on a companion site

Source: Internet
Author: User
Tags url forwarding

The following original, transfer please indicate the source, thank you for your cooperation!

Introduction: NAT123 is a very powerful tool, and the use of the very simple, really to help users ignore the internal and external network of the construction station services.

Here is a brief introduction of how to build an intranet WCF service with NAT123, and then use an Android app to make calls to it, because NAT123 provides full port mapping (need visitor support), so can do the site, the app background, but also can do other applications of the server such as FTP, etc. Depending on the needs of the application. At last, a simple performance test was done on the two mapping sites built.

using NAT123 to build the internal network WCF service:(because the article is mainly introduced NAT123,WCF related content self-advice Niang):

Download and install NAT123 (official website), register your account and log in.

Point client under the Add map to create their own mappings, there are several kinds of maps, ordinary sites generally choose 80 site map, 80 map away from overseas servers, so the speed will be slower, not considering the search engine indexed site can be used in non-80 site mapping, but the public address needs to take the port (with URL forwarding can remove the port, This is not a table), but a non-80 port mapping can be accessed as an app backend service point with its own app. Full port mapping enables many other scenarios such as Telnet, FTP, and so on. Full port mappings require access-side installation visitors to support.

I built a 80 port map and a non-80 port mapping (here's an example with 80 ports.) In addition, non-full-port mapping requires T-currency balance is not 0 or real-name authentication, can be filled with a few dollars of T-currency (1 block equivalent to 10T) to remove the limit, or with full port mapping).

Want to customize their own domain name also need t currency balance is not 0 or real names authentication, here I keep the default value, directly saved. NAT123 the strength of this time is manifested, without any other configuration, now their domain name has been able to access, will successfully point to their own site (I am here in this machine), and let friends from all over the test, can be accessed (full port mapping requires access to the end of the installation of visitors, So I still recommend that you charge a few dollars for T-currency with non-full port mapping). Below is the effect of accessing my site directly with the mapped extranet address I configured, two buttons to the background two Ajax calls and corresponding return values. See, the service is very simple, cheap smile.

To here a NAT123 established by the background server has been completed, the following with a test app access, here with the Android app for example (Android app development related content please ask the big God Google and Niang).

invoke the newly created WCF service with the Android app :

Works with the as or EC-Android app (here with EC):

Add a button to write the code off with the WCF service deployed on our site just now

The returned data is in JSON format, the unresolved direct display, so there is/this kind of thing, actually is/, please ignore.

Mapping the site simple performance test data :

Below is my own two map to do a performance test data, and the degree of Niang response time to make a comparison (of course, Niang always have a lot of people on the, and my site only test program in the access, affirmation and degree Niang can not compare):

Non-80 port mapped access data, slightly faster

80 port mapped Access data, go abroad line, really slow kinda that what

Finally, with the local address (http://localhost) to access the site's speed, have to say, local access speed is fast AH ~

Finally, the free version of the NAT123 function is not very good speed or stability, usually as a test or mini-site, application-level server or pay to upgrade VIP services.

Build an intranet WCF service with NAT123 and implement an Android app to access a simple performance test on a companion site

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.