# Get Designer Comm Mode in 8.1

**URL:** <https://forum.inductiveautomation.com/t/get-designer-comm-mode-in-8-1/111091>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [September 30, 2025, 11:44am UTC](https://forum.inductiveautomation.com/t/get-designer-comm-mode-in-8-1/111091 "2025-09-30T11:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [September 30, 2025, 11:44am UTC](https://forum.inductiveautomation.com/t/get-designer-comm-mode-in-8-1/111091/1 "2025-09-30T11:44:43Z")

</div>

Not sure if I am missing something obvious here, but it seems no matter what I do when I try to get the Gateway comm mode with [DesignerGeneralProps](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.49/com/inductiveautomation/ignition/designer/model/DesignerGeneralProps.html#getGatewayCommMode()) it always returns a 2

I am thinking this is because I am instantiating a new `DesignerGeneralProps` and not pulling one from my context, but I cant find a prop of anything on the context that would give me those props.

I am open to ideas, but in general, I am trying to see if the designer is in read-only or read-write mode.

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [September 30, 2025, 11:50am UTC](https://forum.inductiveautomation.com/t/get-designer-comm-mode-in-8-1/111091/2 "2025-09-30T11:50:30Z")

</div>

Here's a snippet I have laying around:

```kotlin
inline fun requireGatewayReadWrite(lazyMessage: () -> Any) : Boolean {
    if (GatewayConnectionManager.getInstance().connectionMode != ClientGatewayConnection.MODE_FULL) {
        val message = lazyMessage()
        ErrorUtil.showError("$message: Gateway Comm Mode is not Read/Write.")
        return false
    }
    return true
}

```
