

11:31, EEST

February 19, 2020

Hello, I use Delphi OPC-UA 7.02 (Build 712)
My computer has 2 network cards, and I would like to have the UA Server on a specific IP address.
Example: I have fo rexample the IP 192.168.1.1 and 192.168.1.2
I would like to have on now the UA Server available onthe IP address 192.168.1.2
Is this possible, or might I am wrong?
Therfore, I thought to change
UaServer.ApplicationIdentity.ApplicationDescription := TUaApplicationDescription.Builder
.ApplicationUri(‘urn:192.168.1.2:UA:HMIServer’)
.ProductUri(‘urn:prosysopc.com:UA:HMIServer’)
.ApplicationName(TUaLocalizedText.Create(‘HMIServer@localhost’))
… and UaServer.BindAddresses.Add(‘192.268.1.2’);
And then for example, I wanted to try to open the UAserver with opc.tcp://192.168.1.2:4840.
But, something I am making wrong.
If Ido this as a localhost, then it works, repsectively when:
UaServer.ApplicationIdentity.ApplicationDescription := TUaApplicationDescription.Builder
.ApplicationUri(‘urn:localhost:UA:HMIServer’)
.ProductUri(‘urn:prosysopc.com:UA:HMIServer’)
.ApplicationName(TUaLocalizedText.Create(‘HMIServer@localhost’))
… and not used the UaServer.BindAddresses.Add(‘127.0.0.1’);
Might it even possible, or am I totally wrong ?
17:16, EEST

December 21, 2011

BindAddresses defines to which IP addresses the server is bound to. You don’t need to modify the ApplicationUri. That should only be unique within the network and usually it’s best to use ‘localhost’ there – it will be replaced with the actual hostname of the machine where the server is run, ensuring uniqueness in that way.
I just tested and BindAddresses worked for me to limit the connection from the network only – disabling local connections. I tested with the latest version 7.8.0, so I recommend to update to that, if possible, although I don’t remember if there was any fixes related to this, nor did I find any from the release notes..
Most Users Ever Online: 1919
Currently Online:
132 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: 793
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1538
Posts: 6493
Newest Members:
sophiadavis, Waynegalse, Phillipbus, Oscarsat, WilliamJer, WilliamTunse, mvsjonah79, RaymondSmutt, Merlin AI pap, patlawrence98Moderators: Jouni Aro: 1027, Pyry: 1, Petri: 0, Bjarne Boström: 1037, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0
Administrators: admin: 1