# Issues with Embeding Comments

**URL:** https://meta.discourse.org/t/issues-with-embeding-comments/34126
**Category:** Support
**Created:** [October 4, 2015, 10:17pm UTC](https://meta.discourse.org/t/issues-with-embeding-comments/34126 "2015-10-04T22:17:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aoredo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aoredo](https://meta.discourse.org/u/aoredo)
#### Post date: [October 4, 2015, 10:17pm UTC](https://meta.discourse.org/t/issues-with-embeding-comments/34126/1 "2015-10-04T22:17:23Z")

</div>

Hello All, I am trying to use Discourse for commenting on my website and I have set it up in a dev environment but having issues. For some reason it looks like Discourse can you read my website on port 5000 (not sure) as I run it locally on my machine. I am getting the error below

INFO:

```
Job exception: Connection refused - connect(2)

```

Backtrace

```
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize'
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `open'
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
/usr/local/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
/usr/local/lib/ruby/2.0.0/net/http.rb:877:in `connect'
/usr/local/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
/usr/local/lib/ruby/2.0.0/net/http.rb:851:in `start'
/usr/local/lib/ruby/2.0.0/open-uri.rb:313:in `open_http'
/usr/local/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
/usr/local/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
/usr/local/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
/usr/local/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
/usr/local/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
/var/www/discourse/lib/freedom_patches/open_uri_redirections.rb:70:in `open_uri'
/usr/local/lib/ruby/2.0.0/open-uri.rb:689:in `open'
/usr/local/lib/ruby/2.0.0/open-uri.rb:34:in `open'
/var/www/discourse/app/models/topic_embed.rb:79:in `find_remote'
/var/www/discourse/app/models/topic_embed.rb:106:in `import_remote'
/var/www/discourse/lib/topic_retriever.rb:56:in `fetch_http'
/var/www/discourse/lib/topic_retriever.rb:43:in `perform_retrieve'
/var/www/discourse/lib/topic_retriever.rb:10:in `retrieve'
/var/www/discourse/app/jobs/regular/retrieve_topic.rb:16:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

```

Env

```
hostname	ubuntu-app
process_id	[92, 88, 157]
application_version	992386b22e59758411215b37d66eab445d1060b1
current_db	default
current_hostname	gist.domain.com
job	Jobs::RetrieveTopic
problem_db	default
opts	
user_id	1
embed_url	[http://dev.domain.com:5000/567270/nigerianwedding/nigerianwedding-yorubabride, http://dev.domain.com:5000/370252/nigerianwedding/edobride-nigerianwedding, http://dev.domain.com:5000/539986/nigerianwedding/nigerianwedding-yorubabride, http://dev.domain.com:5000/115693/realmichellew/melangemode-peplumblazer-michellewilliams]
current_site_id	default

```

Just to add, I can ping in both directions - [gist.domain.com](http://gist.domain.com) \<\> [dev.domain.com](http://dev.domain.com)

I will appreciate any suggestions. Thanks

---

<div class="post-metadata">

### Author: ![aoredo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aoredo](https://meta.discourse.org/u/aoredo)
#### Post date: [October 5, 2015, 10:28pm UTC](https://meta.discourse.org/t/issues-with-embeding-comments/34126/2 "2015-10-05T22:28:21Z")

</div>

I am now using a live server and this issue seems to be resolved. It seems like the parser did not like port 5000 “:5000”

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 6, 2015, 10:06am UTC](https://meta.discourse.org/t/issues-with-embeding-comments/34126/3 "2015-10-06T10:06:43Z")

</div>


