Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Error: Failed to initialize server endpoint: opc.tcp
February 13, 2025
15:37, EET
Avatar
ValentinL
New Member
Members
Forum Posts: 1
Member Since:
February 13, 2025
sp_UserOfflineSmall Offline

Hello,

When I lunch OPC UA Simulation Server, I have the error: “ERROR: Failed to initialize server endpoint: opc.tcp://…..”.

I do not have another instance running on my laptop.
I checked the log file “simulationserver.log” : “Caused by: java.net.BindException: Address already in use: bind”

How should I fix the issue?

Best regards,
Valentin

February 14, 2025
10:05, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1037
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Some other application could have taken the port.

If you are on Windows, please also see https://forum.prosysopc.com/forum/opc-ua-simulation-server/prosys-opc-ua-simulation-server-not-running-in-my-local-machine/#p7039 , copied below:
Hyper-V (and possibly some other software) does reserve some ports on Windows.
See https://stackoverflow.com/questions/54010365/how-to-see-what-is-reserving-ephemeral-port-ranges-on-windows see the first 2 answers (in the second one there is “netsh int ip show excludedportrange protocol=tcp”), that should hopefully be able first see that the port was reserved (explains the issue) and then adding it to the excludes causes it to not be reserved anymore (you probably need to restart after adding the port number to the excludes).

February 14, 2025
11:34, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 353
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

If you’re on Windows, you can also use Resource Monitor’s Network tab to check which TCP ports are in use.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
68 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 791

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1538

Posts: 6493

Newest Members:

Phillipbus, Oscarsat, WilliamJer, WilliamTunse, mvsjonah79, RaymondSmutt, Merlin AI pap, patlawrence98, opcua_1232141232321, DavidGaday

Moderators: Jouni Aro: 1027, Pyry: 1, Petri: 0, Bjarne Boström: 1037, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0

Administrators: admin: 1