Online chat in unity

Okay so ive made a chat in unity the only problem is when i initialize the server using:

Network.InitializeServer(2, Port, useNat);

I have a connect button and when connect is clicked this code runs:

Network.Connect(IP, port);

But there is no way of getting the server’s IP for which i initialized, so how do i get a client to connect to my server i intialized?!! HELP PLEASE!!

When you initialise a server, you automatically connect to it. The server doesn’t have to use Network.Connect.

Otherwise, if you are running two instances on the same machine, you can use the localhost (125.0.0.1) to connect to the local machine.

I have a connect button and when a user clicks connect they will connect to the initialized server (if its been initialized), how do i get the client to connect to the initialized server, By the way, im trying to connect to another computer thats not in my house, like a mates computer