Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Retrieving IP of client connected to Cloverleaf "Server
Is there a way within a stack or within a pdl to retrieve the ip of who is connected to my port…..im configured as a server running mlp_tcp.pdl
Use Multi_Server. There are many ways to get the IP, via Meta Data, Global, etc.
Robert,
I think that the IP address you get is AFTER connection has occurred (and possibly even after a message has been delivered).
If your intent is to control access – this is probably not the way to do it.
If you just want to be able to indicate who you received a message from, etc. than this will work fine.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
There is nothing that says the message must be processed after seeing who sent it
multi-server….Yep 8) …I was fooling around with it yesterday…had some connection issues using pdl……but will go back and take another swing…..had some problems getting DRIVERTCTL CLIENTIP (Did not exist) … 😕
…..running 5.6 rev2 Thansk guys! (Jim and Chuck)
Charlie,
What is the global available?
The global is client_list
There is also a file created in the process directory: .cli
the cli file IS there…so I’m good.
Thanks !
Jim…..thanks for your input….having received the message is a consideration…..
I AM having problems getting a connection when mlp_tcp.pdl is used…..I can get one on native tcp but not with the pdl….. 😕
What release of Cloverleaf(R)?
Do you mean you are having an issue actually getting a connection or identifying who is connected?
Getting a connection. “Works” with tcp (connection established/status shows # connections etc..)
but not with PDL…..no indication that the engine even knows that I have specified multi-server ???? looking at eo etc…..