# Block-level setting for the default hostname and port number of outgoing OSC messages.

``

    with_osc  hostname (string), port (number)

Sets the destination host and port that `osc` will send messages to for the given do/end block.

Introduced in v3.0

## Example

# Example 1
``
    use_osc "localhost", 7000
    osc "/foo/baz"

    with_osc "localhost", 7010 do

       osc "/foo/baz"
    end

    osc "/foo/baz"
| ``
    # Specify port 7010
    # Send an OSC message to port 7000

    # set hostname and port for the duration
    # of this do/end block
    # Send an OSC message to port 7010

    # Send an OSC message to port 7000
    # as old setting is restored outside
    # do/end block