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
UA Server defining an IP Address
August 27, 2024
11:31, EEST
Avatar
P0001
Member
Members
Forum Posts: 6
Member Since:
February 19, 2020
sp_UserOfflineSmall Offline

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 ?

August 27, 2024
17:16, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1021
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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..

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
16 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: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1515

Posts: 6417

Newest Members:

ChenYK, besskeldie0, liamkarpinski7, deannaranieri50, WillieDus, ktaletmczs, rosalindcarbone, Stenman, trista0620, miaiverson

Moderators: Jouni Aro: 1021, Pyry: 1, Petri: 0, Bjarne Boström: 1021, Jimmy Ni: 26, Matti Siponen: 342, Lusetti: 0

Administrators: admin: 1