MQL4 Reference Account Information AccountServer
Returns the connected server name.
string AccountServer();
Returned value
Connected server name.
Example:
Print("Server name is ", AccountServer());