Programmatically determine server IP