# How to Configure Access Point Name (APN) for Android Devices?

Connecting devices to the internet or sending/receiving multimedia messages using MMS (Multimedia Messaging Service) on a cellular network requires APN (Access Point Name) to be configured on these devices. The APN serves as the gateway between the cellular network and the internet, MMS, or any other network you’re attempting a connection to. It is configured with all the necessary parameters with which a network carrier can assign an IP address to a device and initiate the network connection. With Hexnode’s MDM solution, you can remotely deploy APN settings to your devices and save the hassle of having your users configure it manually.

 Notes:- This feature works only on [Samsung Knox](https://www.samsungknox.com/en/knox-platform/supported-devices) devices.

 

Configure APN for Android devices
---------------------------------

Configure APN from Hexnode UEM by following the instructions below.

1. Log in to your **MDM** portal.
2. Go to **Policies**.
3. Select an existing policy or add a new one. To create a new policy, click on the **New Policy** button.
4. Enter the policy name and optionally a description.
5. From **Android > Networks**, select **APN**.

APN SettingsDescriptionUsernameThe username used for authenticating the connection.PasswordThe password associated with the username.APN NameA name for the APN settings to identify among other saved APN settings. This field is mandatory.APNThe access point name for the network connection.APN ServerThe address of the APN Gateway Server.MMSCThe Multimedia Messaging Service Center (MMSC) address that looks like a web URL. It is used for sending and receiving MMS messages.MMS proxyThe HTTP proxy address for connecting to the MMSC server.MMS portThe port number for the MMS proxy endpoint connecting to the MMSC server.Mobile Country Code (MCC)MCC is a three-digit code that is used to identify a country or a group of networks that share the same MCC. MCC is used with MNC (Mobile Network Code) to uniquely identify a network. This field is mandatory.MNCMobile Network Code (MNC) is a two or three-digit code that is assigned to a network. Use it with MCC to uniquely identify the home network. This field is mandatory.Authentication typeSelect an authentication protocol for your connection. Provided options are – *None* (default), *PAP* (Password Authentication Protocol), *CHAP* (Challenge Handshake Authentication Protocol), *PAP* or *CHAP*.
If a protocol is selected, the Username and Password fields will have to be filled with the corresponding values.ProtocolSelect the protocol to be used: **IPV4** (default), **IPV6** or **IPV4/V6**.Proxy addressSpecify the IP or domain address of the HTTP proxy server to mask web traffic over this connection.Roaming protocolFrom **IPV4** (default), **IPV6** and **IPV4/V6**, select an internet protocol to use while the user is outside their home network.TypeThe available values are **Default** (default), **MMS** and **SUPL**. Select Default to use this APN configuration for internet access, MMS for multimedia messaging, or SUPL (Secure User Plane Location) to detect the geographical location of the device through the network provider.MVNO TypeSpecify the type of Mobile Virtual Network Operator (MVNO) to be configured. The available values are **None** (default), **Group Identifier Level 1 (GID)**, Service Provider Name (SPN), **International Mobile Subscriber Identity (IMSI)**. - Select **None** if your APN configuration is not restricted for use on a particular MVNO or subscriber account.
- Select **GID** to enter the identifier for the SIM and the handset association.
- Select **SPN** to enter the name of the Service Provider.
- Select **IMSI** to enter the unique number associated with the GSM mobile phone user.

Supported from Android 9.0+.

MVNO ValueSpecify the value associated with the MVNO type.[![APN configuration for Android devices](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/04/Access-point-name-APN-settings-for-android-devices-with-hexnode-mdm.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/04/Access-point-name-APN-settings-for-android-devices-with-hexnode-mdm.png)

Associate APN settings with target devices
------------------------------------------

If you haven’t saved the policy yet,

1. Go to **Policy Targets**.
2. Click on **+Add Devices**.
3. Search and select all the devices to which the policy is to be applied.
4. Click **OK**.
5. Click on **Save** to apply the policy to devices.

Apart from devices, you can also associate the policies with Device Groups, Users, User groups, and Domains from ‘Policy Targets’.

If the policy has been saved already, you can associate it by another method,

1. From ‘Policies’, check the policy to be associated.
2. Click on **Manage** > **Associate Targets** and select the devices.
3. Click on **Associate** to apply the policy to the devices.

What you’ll see on the device end
---------------------------------

Once the policy has been successfully associated with the device and provided the configurations are valid, the APN profile is added and activated under the APN settings page on your device. This setting will now be used to connect to your configured network.
You may verify the configuration on your device by going to – **Settings** > **Connections** > **Mobile Networks** > (Select your network carrier) > **Access Point Names**.