One alternative to using localhost for local development is to use your computer's IP address as the host. You can find your IP address in your system preferences or by typing ipconfig in the Command prompt for Windows or ifconfig in the Terminal for Mac or Linux.