Fixes problems with remote address determination.