# Changing the default port

**URL:** <https://forum.inductiveautomation.com/t/changing-the-default-port/80017>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 4, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017 "2023-10-04T14:03:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/1 "2023-10-04T14:03:02Z")

</div>

We are currently running ignition v8.1.27. It is using the default http port 8088 and https port 8043. Can I change these 80 and 443 respectively? I tried to change the https port to 443 in Networking-\>web server. But it does not work.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [October 4, 2023, 2:13pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/2 "2023-10-04T14:13:24Z")

</div>

Did you restart the gateway after changing the setting?

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 2:36pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/3 "2023-10-04T14:36:57Z")

</div>

It gave the dialog as follows when I changed it and after I saved the url is not accessbile  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/681969117f11fa54871dcf9996362fba9a1d1b5c.png)

I did restart the container also to check if it works after restart. But it is not working

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 4, 2023, 2:39pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/4 "2023-10-04T14:39:15Z")

</div>

You probably shouldn't be using ports that are reserved for well known things.  
May I ask why you want to do this ?

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/5 "2023-10-04T14:42:15Z")

</div>

I am running it in a vm and I don't want the user to give the port number (as they mess up the port)  
when they are typing the url. Directing it to 80 and 443 will default it to the url.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 4, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/6 "2023-10-04T14:42:49Z")

</div>

If you want to do this in a container or other Linux, and the Ignition service within the container is not running as root, then you will need a SystemD override file to supply the proper [AmbientCapabilities=](https://forum.inductiveautomation.com/search?q=AmbientCapabilities%20order%3Alatest) settings.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 5:08pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/7 "2023-10-04T17:08:03Z")

</div>

I am using ansible to deploy ignition using podman container. I don't see any option to set AmbientCapabilities.

```auto
- name: Ignition container started
  become: true
  containers.podman.podman_container:
    name: "ignition"
    image: ignition:{{ ignition_version }}
    ports:
      - "62541:62541" # TCP	Default port for Ignition OPC UA server.
      - "17342:17342" #	UDP	Receive Port for SMS with Alarming. 
      - "4446:4446" #	UDP/broadcast	Default receive port for multicast messages that makes the Gateway discoverable on a local network.
      - "6501:6501" #	TCP	The port utilized by Vision's Local Client Fallback feature.
      - "8043:8043" #	TCP	Default SSL port setting to access the Ignition Gateway.
      - "8060:8060" #	TCP	Default SSL port setting for the Gateway Network (metroSSLPort in the Gateway XML file).
      - "8088:8088" #	TCP	Default port setting to access the Ignition Gateway. Also the non SSL port for the Gateway Network
    volume:
            - /mount_folder/data:/usr/local/bin/ignition/data

    env:
      VM_NAME: '{{ ansible_hostname }}'
      IGNITION_EDITION: "standard"
      DISABLE_QUICKSTART: true
      ACCEPT_IGNITION_EULA: "Y"
      GATEWAY_ADMIN_USERNAME: "{{ ignition_admin_username }}"
      GATEWAY_ADMIN_PASSWORD: "{{ ignition_admin_password }}"
      GATEWAY_MODULES_ENABLED: .....

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 4, 2023, 6:02pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/8 "2023-10-04T18:02:52Z")

</div>

If you're running Ignition via docker image you shouldn't be changing the ports in the gateway interface - you should use the environment or runtime configuration parameters.

You would also need to update your port mappings.

[https://docs.inductiveautomation.com/display/DOC81/Docker+Image](https://docs.inductiveautomation.com/display/DOC81/Docker+Image)

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/10 "2023-10-04T18:16:58Z")

</div>

Thank you. It is working for non-containerized version.

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 4, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/11 "2023-10-04T20:28:57Z")

</div>

for containerized version even if pass the port as parameter it does not work

```auto
podman create --name ignition \
--restart=unless-stopped \
-p 80:80 \
-p 443:443 \
-e IGNITION_EDITION="standard" \
-e GATEWAY_HTTP_PORT=80 \
-e GATEWAY_HTTPS_PORT=443 \
-e DISABLE_QUICKSTART=true \
-e ACCEPT_IGNITION_EULA="Y" \
repo_name/inductiveautomation/ignition:8.1.27

```

Gives the error  
jvm 1 | 2023/10/04 20:25:59 | E [IgnitionServer] [20:25:59]: The port(s) 80, 443 are unavailable

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 4, 2023, 8:39pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/12 "2023-10-04T20:39:55Z")

</div>

You can't bind to ports under 1024 without requesting the `CAP_NET_BIND_SERVICE` capability.

@kcollins links to some documentation about how this can be done here: [Docker image now defaults to non-root user - #3 by kcollins1](https://forum.inductiveautomation.com/t/docker-image-now-defaults-to-non-root-user/69784/3)

---

<div class="post-metadata">

**Author:** ![Sanat\_Pattanaik](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sanat\_Pattanaik](https://forum.inductiveautomation.com/u/Sanat_Pattanaik)\
**Post date:** [October 9, 2023, 4:36pm UTC](https://forum.inductiveautomation.com/t/changing-the-default-port/80017/13 "2023-10-09T16:36:46Z")

</div>

Thank you it works now.
