Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net.ConnectException: Connection refused: connect  RSS feed

 
Sen Jothi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i try to connect using the ip and port number i am getting the following error

m_socket = new Socket( m_ip,m_port );

java.net.ConnectException: Connection refused: connect

Can anyone help to resolve the issue.



 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
Is there a service listening on a machine with that IP address and that port?
Is there a firewall on that machine?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!