Fixed IP bug on OS X