Port Usage for Mobile Applications
When setting up a firewall, enable the following ports:
Port Number |
Keyword |
---|---|
80 |
http |
443 |
https |
42424 |
ASP.NET State Server (if used) |
ASP.NET State Service
If your mobile application requires the ASP.NET state server, configure it as follows:
Make sure ASP.NET state service is running on the remote server that will store session state information. This service is installed with ASP.NET and Visual Studio at the following location:
systemroot\Microsoft.NET\Framework\versionNumber\aspnet_state.exe
In the application's Web.config file, modify the sessionState element as follows:
Set mode to "StateServer".
Set stateConnectionString to this:
stateConnectionString="tcpip=<computer_name>:42424"
View State and Security for Mobile Applications
If sensitive information will be included in view state, protect the connection. For details, see Securing Applications
See Also
Concepts
Designing Secure Mobile Web Form Pages
ASP.NET Configuration Overview
ASP.NET Session State Overview
Reference
sessionState Element (ASP.NET Settings Schema)