Ok, we understand you are comparing localhost with Bluehost ... we get that ... so drop the repeated information about Bluehost (that's working) and concentrate on 'localhost' - which you report is slow.
So far, from other postings, you've shared it's a "Ubuntu operating system".
Is that a physical server ... ie, separate machine where you could actually touch with your hand the machine? Or is it a Ubuntu in a virtualized environment ... like VirtualBox on host of Windows and a virtualized Ubuntu?
A 'local' server of any flavor is inside your private network ... believe you said previously you had issues with connecting to it to begin with and is a 192.168.x.x private IP.
Slowness in a private home network is something no one here might be able to help ... unless we know something about the private home network and how the Ubuntu is truly hosted and connected to your private home network.
Can you clarify please?