Sometimes the gateway runs on a system that doesn't have name services configured. So a UID should also work.