Share via


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, add the following to the <sessionState> element in the Web.config file for the application.

  1. 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 .NET at the following location:

    systemroot\Microsoft.NET\Framework\versionNumber\aspnet_state.exe 
    
  2. In the application's Web.config file:

    1. Set mode="StateServer"
    2. Set the stateConnectionString="tcpip=<computer_name>:42424"

View State and Security for Mobile Applications

If sensitive information is to be included in view state, the recommendation is to protect the connection. Information about how to protect the connection can be found in the Securing Applications and the ASP.NET Web Application Security sections of the .NET Framework SDK documentation.

See Also

Designing Secure Mobile Applications | <sessionState> Element | ASP.NET Configuration | SessionStateModule Class | Session State