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: 1026
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:
45 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1