Skip to content

Commit

Permalink
Change localhost port 3999->4000
Browse files Browse the repository at this point in the history
find the web interface at URL http://localhost:4000
  • Loading branch information
RainbowMiner committed Aug 1, 2018
1 parent bd1edc0 commit a49c404
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions API.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
# Check the reservations before trying to create them to avoid unnecessary UAC prompts.
$urlACLs = & netsh http show urlacl | Out-String

if ($API.RemoteAPI -and (!$urlACLs.Contains('http://+:3999/'))) {
if ($API.RemoteAPI -and (!$urlACLs.Contains('http://+:4000/'))) {
# S-1-5-32-545 is the well known SID for the Users group. Use the SID because the name Users is localized for different languages
Start-Process netsh -Verb runas -Wait -ArgumentList 'http add urlacl url=http://+:3999/ sddl=D:(A;;GX;;;S-1-5-32-545)'
Start-Process netsh -Verb runas -Wait -ArgumentList 'http add urlacl url=http://+:4000/ sddl=D:(A;;GX;;;S-1-5-32-545)'
}
if (!$API.RemoteAPI -and ($urlACLs.Contains('http://+:3999/'))) {
Start-Process netsh -Verb runas -Wait -ArgumentList 'http delete urlacl url=http://+:3999/'
if (!$API.RemoteAPI -and ($urlACLs.Contains('http://+:4000/'))) {
Start-Process netsh -Verb runas -Wait -ArgumentList 'http delete urlacl url=http://+:4000/'
}

# Setup runspace to launch the API webserver in a separate thread
Expand Down Expand Up @@ -56,11 +56,11 @@
# Setup the listener
$Server = New-Object System.Net.HttpListener
if ($API.RemoteAPI) {
$Server.Prefixes.Add("http://+:3999/")
$Server.Prefixes.Add("http://+:4000/")
# Require authentication when listening remotely
$Server.AuthenticationSchemes = [System.Net.AuthenticationSchemes]::IntegratedWindowsAuthentication
} else {
$Server.Prefixes.Add("http://localhost:3999/")
$Server.Prefixes.Add("http://localhost:4000/")
}
$Server.Start()

Expand Down Expand Up @@ -278,7 +278,7 @@

Function Stop-APIServer {
if ( -not $Global:API.Stop ) {
try { $result = Invoke-WebRequest -Uri "http://localhost:3999/stop" } catch { Write-Host "Listener ended" }
try { $result = Invoke-WebRequest -Uri "http://localhost:4000/stop" } catch { Write-Host "Listener ended" }
}
$Global:API.Server.dispose()
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Features: easy setup wizard with adhoc working default (no editing of files need
- **Define pool's algorithms and coins**
- **Switch MSI Afterburner profiles per miner**
- **Pause mining without exiting the RainbowMiner**
- **Live monitoring web-interface at [localhost:3999](http://localhost:3999)**
- **Live monitoring web-interface at [localhost:4000](http://localhost:4000)**


## INSTALLATION
Expand Down Expand Up @@ -349,7 +349,7 @@ This configuration would bind all GTX1050Ti in the system to Ethash and X16R min

## WEB-INTERFACE

For your convenience, you can monitor and setup RainbowMiner using your web browser. The web interface very prominently shows RainbowMiner's live profitability and the current BTC exchange rates. To start the web interface, simply open the URL [localhost:3999](http://localhost:3999) in a new browser tab.
For your convenience, you can monitor and setup RainbowMiner using your web browser. The web interface very prominently shows RainbowMiner's live profitability and the current BTC exchange rates. To start the web interface, simply open the URL [localhost:4000](http://localhost:4000) in a new browser tab.
- Dashboard: shows the live running miners & pool balances, click the Pause/Restart button to halt and restart RainbowMiner. It will take up to 20 seconds, until the miner script finalize the pause/restart procedure, so give it some time.
- Selected Devices: lists the preselected devices (through command line parameter or configuration)
- All Devices: lists all available devices in your rig
Expand Down

0 comments on commit a49c404

Please sign in to comment.