updated server to locate the correct local address