Thanks that worked, after I finally figured out I actually had to reference it rather than just imports. It is not ideal being a little slow but it seems the best alternative.

The only other idea was to actually create a connection to the server then get the servername from the current connection.