SIF for sitecore 9 giving the error at the SOlr core creation

I am configuring the Sitecore 9.0.2. But SIF is getting failed. Always getting same error as 


[------------------------------------------------ CreateCores [1] : ManageSolrCore -------------------------------------------------]
[CreateCores [1]]:[Requesting] https://localhost:8983/solr
WARNING: [1/5] Request Failed: Unable to connect to the remote server
[CreateCores [1]]:[Requesting] https://localhost:8983/solr
WARNING: [2/5] Request Failed: Unable to connect to the remote server
[CreateCores [1]]:[Requesting] https://localhost:8983/solr
WARNING: [3/5] Request Failed: Unable to connect to the remote server
[CreateCores [1]]:[Requesting] https://localhost:8983/solr
WARNING: [4/5] Request Failed: Unable to connect to the remote server
[CreateCores [1]]:[Requesting] https://localhost:8983/solr
WARNING: [5/5] Request Failed: Unable to connect to the remote server
Install-SitecoreConfiguration : Could not complete request for https://localhost:8983/solr - Unable to connect to the remote server
At C:\setup\resourcefiles\install.ps1:32 char:1
+ Install-SitecoreConfiguration @solrParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:00:37
Transcript stopped, output file is C:\setup\resourcefiles\xconnect-solr.181111.log
Invoke-ManageSolrCoreTask : Could not complete request for https://localhost:8983/solr - Unable to connect to the remote server
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\1.2.1\Public\Install-SitecoreConfiguration.ps1:253 char:21
+ & $entry.Task.Command @paramSet | Out-Default
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-ManageSolrCoreTask

 

I tried with SOlr 6.6.2, 6.6.3 & 7.5. But always its giving the same error. But my SOlr is working perfectly fine when i am accessing the https://localhost:8983/solr in Browsers.

 

Its giving the error when it tries to execute CreateCores [1]: ManageSolrCore.