java.io.IOException

couldn't connect to [/0.0.39.87:27017] bc:java.net.SocketException: Invalid argument or cannot assign requested address

Solutions on the web20055

  • couldn't connect to [/0.0.39.87:27017] bc:java.net.SocketException: Invalid argument or cannot assign requested address
  • couldn't connect to [/0.0.105.137:27017] bc:java.net.SocketException: Network is unreachable: connect
  • couldn't connect to [localhost/127.0.0.1:27017] bc:java.net.SocketException: socket failed: EACCES (Permission denied)
  • Stack trace

    • java.io.IOException: couldn't connect to [/0.0.39.87:27017] bc:java.net.SocketException: Invalid argument or cannot assign requested address at com.mongodb.DBPort._open(DBPort.java:206) at com.mongodb.DBPort.go(DBPort.java:94) at com.mongodb.DBPort.go(DBPort.java:75) at com.mongodb.DBPort.findOne(DBPort.java:129) at com.mongodb.DBPort.runCommand(DBPort.java:138) at com.mongodb.DBTCPConnector.fetchMaxBsonObjectSize(DBTCPConnector.java:409) at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:396) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:192) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295) at com.mongodb.DB.command(DB.java:152) at com.mongodb.DB._doauth(DB.java:496) at com.mongodb.DB.authenticate(DB.java:433)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2172 times, 10 months ago
    11 times, 2 days ago
    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago