Retrieving IP of client connected to Cloverleaf "Server

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Retrieving IP of client connected to Cloverleaf "Server

  • Creator
    Topic
  • #50674
    Bob Schmid
    Participant

      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

    Viewing 9 reply threads
    • Author
      Replies
      • #67058
        Charlie Bursell
        Participant

          Use Multi_Server.  There are many ways to get the IP, via Meta Data, Global, etc.

        • #67059
          Jim Kosloskey
          Participant

            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.

          • #67060
            Charlie Bursell
            Participant

              There is nothing that says the message must be processed after seeing who sent it

            • #67061
              Bob Schmid
              Participant

                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)

              • #67062
                Bob Schmid
                Participant

                  Charlie,

                  What is the global available?

                • #67063
                  Charlie Bursell
                  Participant

                    The global is client_list

                    There is also a file created in the process directory:  .cli

                  • #67064
                    Bob Schmid
                    Participant

                      the cli file IS there…so I’m good.

                      Thanks !

                    • #67065
                      Bob Schmid
                      Participant

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

                      • #67066
                        Jim Kosloskey
                        Participant

                          Robert,

                          What release of Cloverleaf(R)?

                          Do you mean you are having an issue actually getting a connection or identifying who is connected?

                          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                        • #67067
                          Bob Schmid
                          Participant

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

                        Viewing 9 reply threads
                        • The forum ‘Cloverleaf’ is closed to new topics and replies.