I've just installed cURL on my hard-drive in order to use for testing with my localhost (on the command prompt). However I cannot connect to any port. You can see the directory and my input below:
C:\Users\me\curl\src>curl -v http://localhost:9000
which gives me:
- Rebuilt URL to: http://localhost:9000/
- timeout on name lookup is not supported
- Trying ::1...
- TCP_NODELAY set
- Trying 127.0.0.1...
- TCP_NODELAY set
- connect to ::1 port 9000 failed: Connection refused
- connect to 127.0.0.1 port 9000 failed: Connection refused
- Failed to connect to localhost port 9000: Connection refused
- Closing connection 0 curl: (7) Failed to connect to localhost port 9000: Connection refused
Perhaps I should have added that I am using IntelliJ and have since enabled cURL on the harddrive (allowing me to access it from any directory); prompting me to try the following:
C:\Users\me\scala\play\my-project>curl -v http://localhost:9000/
which returns:
- timeout on name lookup is not supported
- Trying ::1...
- TCP_NODELAY set
- connect to ::1 port 9000 failed: Connection refused
- Trying 127.0.0.1...
- TCP_NODELAY set
- connect to 127.0.0.1 port 9000 failed: Connection refused
- Failed to connect to localhost port 9000: Connection refused
- Closing connection 0 curl: (7) Failed to connect to localhost port 9000: Connection refused
So it seems that port 9000 is not open. And I am now thinking that this needs to be configured within intelliJ - here - but this looks as though it is only supported on the Ultimate Edition. This might be the cause of the issue that I am having. It may be helpful to others but it would be good to be sure of this if anyone does have any more information.