You can test if it is a host issue by trying to embed it on another, live domain (perhaps a sub-domain for one you have).
Me thinking out loud: if I told Discourse to accept “localhost”, it will look for it at localhost, which is the Discourse server.
Good luck! I don’t know what’s going on.