# Getting an OpcUaServer reference

**URL:** <https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708>\
**Category:** Module Development\
**Created:** [February 2, 2026, 11:34pm UTC](https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708 "2026-02-02T23:34:32Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [February 2, 2026, 11:34pm UTC](https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708/1 "2026-02-02T23:34:32Z")

</div>

I'd like to register some `DataType` nodes in my own namespace when my module starts.

Is there a supported way to get a reference to the gateway's `OpcUaServer`? I'm assuming I'd have to reference the OPC UA module from the `ModuleManager`, either using `getModule` or `resolveClass`?

How does something like the BACnet driver handle this?

---

<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:** [February 2, 2026, 11:37pm UTC](https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708/2 "2026-02-02T23:37:35Z")

</div>

The only reference to `OpcUaServer` you get is from a `DeviceContext`.

The BACnet driver is actually adding an entirely new namespace and it's using private API to do it.

---

<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:** [October 12, 2026, 5:13am UTC](https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708/3 "2026-10-12T05:13:19Z")

</div>

> [@bmusson](#):
>
> Is there a supported way to get a reference to the gateway's `OpcUaServer`?

Guess who’s back (back again).  
Are there any planned changes to this in 2027?

I have a use case involving non-device use of Ignition’s OPC UA server, and I want to add my own namespace.

ATM the only option I have is creating a “dummy” device to gain a server reference, which is kinda silly.

---

<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 12, 2026, 11:27am UTC](https://forum.inductiveautomation.com/t/getting-an-opcuaserver-reference/113708/4 "2026-10-12T11:27:48Z")

</div>

> [@bmusson](#):
>
> which is kinda silly.

But supported. That's worth a bunch.
