How to specify server path in code?

How to specify server path in code?