lol
localhost = local PC / machine
Of course it gets stuck to connecting, since there is nothing to connect to.
For singleplayer, just use \"Sandbox\" mode under \"Singleplayer\" section, for multiplayer, you actually need to type a server\'s IP and port there, like from this list:
http://starmade-servers.com/