Server adress in notification is internal IP

When erp sends notification via email or connecting to google, the server address is internal IP (192.168.x.x) How or where to change it so it reflect the domain name?