tcp connection refused

I am getting following error when running a program

2011/07/06 18:21:08 stat http error: dial tcp localhost:3179: dial tcp 127.0.0.1:3179: connection refused
2011/07/06 18:21:08 Error putting file: stat http error: dial tcp localhost:3179: dial tcp 127.0.0.1:3179: connection refused

What can be the reason for this

Answer

without a more detail I would say that nothing is listening on port 3179 on localhost. If you’re in Linux do

‘netstat -an|grep :3179’

to see if any process is attached to that port. If in Windows there’s a similar command (without the grep) to see the same info I think – consult our local windows manual 🙂

Attribution
Source : Link , Question Author : Poorna , Answer Author : Khushil

Leave a Comment