Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 9425
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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!