diff --git a/app/scripts/boot.rb b/app/scripts/boot.rb index 9b6f5b619c..9cc12c0850 100755 --- a/app/scripts/boot.rb +++ b/app/scripts/boot.rb @@ -46,5 +46,5 @@ `jack_connect SuperCollider:out_2 system:playback_2` # ensure that the synthdefs have been loaded -client = OSC::Client.new('localhost', 4556) +client = OSC::Client.new('127.0.0.1', 4556) client.send(OSC::Message.new("/d_loadDir", sp_synthdefs_path)) diff --git a/app/scripts/reload-synthdefs.rb b/app/scripts/reload-synthdefs.rb index 7c903f53a4..a706bdc297 100755 --- a/app/scripts/reload-synthdefs.rb +++ b/app/scripts/reload-synthdefs.rb @@ -3,5 +3,5 @@ require 'osc-ruby' load(File.absolute_path("#{File.dirname(__FILE__)}/util.rb")) -client = OSC::Client.new('localhost', 4556) +client = OSC::Client.new('127.0.0.1', 4556) client.send(OSC::Message.new("/d_loadDir", sp_synthdefs_path)) diff --git a/app/scripts/run-code.rb b/app/scripts/run-code.rb index 75a8cba73d..62a6045348 100755 --- a/app/scripts/run-code.rb +++ b/app/scripts/run-code.rb @@ -30,7 +30,7 @@ class Spider def initialize spider_log "Inintialising Spider" - self.client = OSC::Client.new('localhost', 4556) + self.client = OSC::Client.new('127.0.0.1', 4556) self.current_synth = "pretty_bell" self.current_synth_id = INITIAL_SYNTH_ID self.bpm = 60 diff --git a/app/scripts/standalone.rb b/app/scripts/standalone.rb index eb31dfabe1..fd26519a98 100755 --- a/app/scripts/standalone.rb +++ b/app/scripts/standalone.rb @@ -19,7 +19,7 @@ $current_note = 40 $system_vol = 1 -$client = OSC::Client.new('localhost', 4556) +$client = OSC::Client.new('127.0.0.1', 4556) $debug = false def debug(msg) diff --git a/app/scripts/stop-code.rb b/app/scripts/stop-code.rb index 55cb6477e6..640eb2f6a7 100755 --- a/app/scripts/stop-code.rb +++ b/app/scripts/stop-code.rb @@ -7,5 +7,5 @@ SYNTH_GROUP = 1 -client = OSC::Client.new('localhost', 4556) +client = OSC::Client.new('127.0.0.1', 4556) client.send(OSC::Message.new("g_freeAll", SYNTH_GROUP)) diff --git a/app/scripts/stop-running-synths.rb b/app/scripts/stop-running-synths.rb index 6192469158..b295c3a0ce 100755 --- a/app/scripts/stop-running-synths.rb +++ b/app/scripts/stop-running-synths.rb @@ -3,5 +3,5 @@ require 'osc-ruby' SYNTH_GROUP = 1 -client = OSC::Client.new('localhost', 4556) +client = OSC::Client.new('127.0.0.1', 4556) client.send(OSC::Message.new("/g_freeAll", SYNTH_GROUP)) diff --git a/app/scripts/vendor/osc-ruby/examples/event_machine_server.rb b/app/scripts/vendor/osc-ruby/examples/event_machine_server.rb index 42d27b3bab..1c2abf91da 100644 --- a/app/scripts/vendor/osc-ruby/examples/event_machine_server.rb +++ b/app/scripts/vendor/osc-ruby/examples/event_machine_server.rb @@ -7,7 +7,7 @@ require 'osc-ruby/em_server' @server = OSC::EMServer.new( 3333 ) -@client = OSC::Client.new( 'localhost', 3333 ) +@client = OSC::Client.new( '127.0.0.1', 3333 ) @server.add_method '/greeting' do | message | puts "#{message.ip_address}:#{message.ip_port} -- #{message.address} -- #{message.to_a}"