Changing server IP address

Howdy,
I’m trying to evaluate Octopus Deploy and have run into a major roadblock. I’ve searched high and low and cannot find the answer.

How do I change the server’s IP address? I am running a Windows 2008 R2 server w/multiple IP addresses. I want Octopus (and it’s built in RavenDB) to use 192.168.170.193.

Thanks!

Hi Brian,

Thanks for getting in touch! Using the Octopus Manager you can select “Change Bindings”.

Hope that helps!
Vanessa

That is where I have tried to change the setting. I get the following error
when I set the ip address:

2014-07-22 10:24:10.0205 INFO Waiting for service to start. Current
status: StartPending
2014-07-22 10:24:11.1176 INFO Waiting for service to start. Current
status: Running
2014-07-22 10:24:12.1197 INFO Service started
2014-07-22 10:24:12.1087 ERROR The network location cannot be reached.
For information about network troubleshooting, see Windows Help
System.Net.HttpListenerException (0x80004005): The network location cannot
be reached. For information about network troubleshooting, see Windows Help
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Octopus.Server.Web.OctopusNancyHost.TryStartListener() in
y:\work\refs\heads\master\source\Octopus.Server\Web\OctopusNancyHost.cs:line
189
at Octopus.Server.Web.OctopusNancyHost.StartListener() in
y:\work\refs\heads\master\source\Octopus.Server\Web\OctopusNancyHost.cs:line
141
at Octopus.Server.Web.OctopusNancyHost.Start() in
y:\work\refs\heads\master\source\Octopus.Server\Web\OctopusNancyHost.cs:line
125
at Octopus.Server.Web.WebServerInitializer.Start() in
y:\work\refs\heads\master\source\Octopus.Server\Web\WebServerInitializer.cs:line
62
at Octopus.Server.OctopusServerEngine.Start() in
y:\work\refs\heads\master\source\Octopus.Server\OctopusServerEngine.cs:line
47
at Octopus.Server.Commands.RunCommand.Start() in
y:\work\refs\heads\master\source\Octopus.Server\Commands\RunCommand.cs:line
21
at
Octopus.Shared.Startup.AbstractCommand.Octopus.Shared.Startup.ICommand.Start(String[]
commandLineArguments, ICommandRuntime commandRuntime, OptionSet
commonOptions) in
y:\work\refs\heads\master\source\Octopus.Shared\Startup\AbstractCommand.cs:line
55
at
Octopus.Shared.Startup.WindowsServiceHost.<>c__DisplayClass2.b__0() in
y:\work\refs\heads\master\source\Octopus.Shared\Startup\WindowsServiceHost.cs:line
19
at Octopus.Shared.Startup.WindowsServiceAdapter.RunService() in
y:\work\refs\heads\master\source\Octopus.Shared\Startup\WindowsServiceAdapter.cs:line
44

My IPCONFIG output:
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter
Physical Address. . . . . . . . . : 00-50-56-BA-5D-73
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.170.174(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.252.0
IPv4 Address. . . . . . . . . . . : 192.168.170.192(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.252.0
IPv4 Address. . . . . . . . . . . : 192.168.170.193(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.252.0
Default Gateway . . . . . . . . . : 192.168.168.1
DNS Servers . . . . . . . . . . . : 192.168.170.11
192.168.170.12
Primary WINS Server . . . . . . . : 192.168.170.11
Secondary WINS Server . . . . . . : 192.168.170.12
NetBIOS over Tcpip. . . . . . . . : Enabled

And finally NetStat showing that there’s nothing using that ip address:

Active Connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING
TCP 0.0.0.0:9090 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49171 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49175 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49190 0.0.0.0:0 LISTENING
TCP 127.0.0.1:31000 127.0.0.1:32001 ESTABLISHED
TCP 127.0.0.1:32001 0.0.0.0:0 LISTENING
TCP 127.0.0.1:32001 127.0.0.1:31000 ESTABLISHED
TCP 192.168.170.174:139 0.0.0.0:0 LISTENING
TCP 192.168.170.174:3389 192.168.169.211:57347 ESTABLISHED
TCP [::]:135 [::]:0 LISTENING
TCP [::]:445 [::]:0 LISTENING
TCP [::]:3389 [::]:0 LISTENING
TCP [::]:9090 [::]:0 LISTENING
TCP [::]:49152 [::]:0 LISTENING
TCP [::]:49153 [::]:0 LISTENING
TCP [::]:49154 [::]:0 LISTENING
TCP [::]:49171 [::]:0 LISTENING
TCP [::]:49175 [::]:0 LISTENING
TCP [::]:49190 [::]:0 LISTENING
UDP 0.0.0.0:123 :
UDP 0.0.0.0:500 :

Thanks!

Hi Brian,

Thanks for the reply and your error message. There is a second step, sorry about that.
You need to update the http.sys file to include your IP address.
But here I have to give a big fat warning: This will also change the IP addresses for anything using http.sys.
The instructions for what command to run and why can be found on the following blog post:
http://www.diaryofaninja.com/blog/2010/09/14/how-to-stop-iis-binding-to-all-ip-addresses

Let me know how that goes.
Vanessa

Thank you Vanessa. That worked. I also had to add a binding for the DNS
name in the Octopus Manager.
So in short.
I added the IP I wanted Octopus to listen on using the “netsh http add
iplisten ipaddress=xxx.xxx.xxx.xxx” command.
Then I removed the localhost binding and added a binding for the IP address
and one for the internal DNS name. (http://deploy.xxxx.com)

Thanks!