P2p load in with a text VAR

How do I…

I wanna connect a p2p with text var
Its load the good ip in a text but not in p2p connect. PLS HELP ME

What is the expected result

to connect to a p2p server

What is the actual result

Loading the good ip in the global text var but and then use global var to connect

https://imgur.com/a/wfqnK6M