# I am having problem to connect to OPC-UA Server

**URL:** <https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928>\
**Category:** General Discussion\
**Created:** [December 9, 2023, 9:31am UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928 "2023-12-09T09:31:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonu\_Yadav](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@Sonu\_Yadav](https://forum.inductiveautomation.com/u/Sonu_Yadav)\
**Post date:** [December 9, 2023, 9:31am UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/1 "2023-12-09T09:31:51Z")

</div>

```auto
java.lang.Exception: no anonymous token policy found
	at org.eclipse.milo.opcua.sdk.client.api.identity.AnonymousProvider.lambda$getIdentityToken$2(AnonymousProvider.java:47)
	at java.base/java.util.Optional.orElseThrow(Unknown Source)
	at org.eclipse.milo.opcua.sdk.client.api.identity.AnonymousProvider.getIdentityToken(AnonymousProvider.java:47)
	at org.eclipse.milo.opcua.sdk.client.session.SessionFsmFactory.activateSession(SessionFsmFactory.java:925)
	at org.eclipse.milo.opcua.sdk.client.session.SessionFsmFactory.lambda$configureActivatingState$19(SessionFsmFactory.java:353)
	at com.digitalpetri.strictmachine.dsl.ActionBuilder$PredicatedTransitionAction.execute(ActionBuilder.java:119)
	at com.digitalpetri.strictmachine.StrictMachine$PollAndEvaluate.lambda$run$0(StrictMachine.java:242)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at com.digitalpetri.strictmachine.StrictMachine$PollAndEvaluate.run(StrictMachine.java:227)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

8.1.35 (b2023120517)
Azul Systems, Inc. 17.0.8
```

---

<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:** [December 9, 2023, 11:30am UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/2 "2023-12-09T11:30:18Z")

</div>

Looks like the server you are connecting to doesn’t allow anonymous identities and you didn’t provide a username and password.

---

<div class="post-metadata">

**Author:** ![Nidhi\_Patel](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@Nidhi\_Patel](https://forum.inductiveautomation.com/u/Nidhi_Patel)\
**Post date:** [May 2, 2024, 5:10pm UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/3 "2024-05-02T17:10:13Z")

</div>

I am having the same issue on kpedirect on ignition, should the userid password be same as the ignition gateway login ?

---

<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:** [May 2, 2024, 5:26pm UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/4 "2024-05-02T17:26:30Z")

</div>

No, Ignition's OPC UA server has its own authentication profile. The default username and password are `opcuauser` / `password`.

---

<div class="post-metadata">

**Author:** ![Nidhi\_Patel](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@Nidhi\_Patel](https://forum.inductiveautomation.com/u/Nidhi_Patel)\
**Post date:** [May 2, 2024, 6:16pm UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/5 "2024-05-02T18:16:53Z")

</div>

I changed the username and password to the default and it still didnot work. I have a feeling I might be a little confused on the endpoints... what should be the end points,  
Should my OPC-UA endpoints for the ignition and kepware have the same network ID?, and just different end points? They're both installed on the same PC

---

<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:** [May 2, 2024, 6:26pm UTC](https://forum.inductiveautomation.com/t/i-am-having-problem-to-connect-to-opc-ua-server/82928/6 "2024-05-02T18:26:25Z")

</div>

Give support a call and let them walk you through it.
