# How to change the default port 8080 for vapor 4 using Terminal?

**URL:** <https://forums.kodeco.com/t/how-to-change-the-default-port-8080-for-vapor-4-using-terminal/121645>\
**Category:** Server Side Swift with Vapor\
**Created:** [October 2, 2020, 5:24pm UTC](https://forums.kodeco.com/t/how-to-change-the-default-port-8080-for-vapor-4-using-terminal/121645 "2020-10-02T17:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![romer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/romer/32/101506_2.png) [@romer](https://forums.kodeco.com/u/romer)\
**Post date:** [October 2, 2020, 5:24pm UTC](https://forums.kodeco.com/t/how-to-change-the-default-port-8080-for-vapor-4-using-terminal/121645/1 "2020-10-02T17:24:31Z")

</div>

Hi,

I bought the book for vapor 4 and I can’t find anywhere on the book on how to change the default port 8080 for vapor 4, there used to be a way to run vapor on a different port on Vapor 3 by running on terminal `vapor run --port=8080` but I don’t think that’s possible anymore since I keep getting this error `error: terminated(72): XPC_SERVICE_NAME=0 HOME=/Users...`

is there a new way to run vapor under a different port… e.i: port 8090?

Thanks!.

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [October 3, 2020, 9:24am UTC](https://forums.kodeco.com/t/how-to-change-the-default-port-8080-for-vapor-4-using-terminal/121645/2 "2020-10-03T09:24:43Z")

</div>

In configure.swift you can do:

```swift
app.http.server.configuration.port = 8090

```
