---
title: "Discussion on \"Custom phoenix server port\" | Hashnode"
description: "Discussion on \"Custom phoenix server port\". Running mix phx.server for a Phoenix project with the default settings will attach the server to port 4000.\nIf you'd like to use a different port in development, you can change it in config/dev.exs\nconfig :my_app, MyApp.Web.Endpoint,\n  http: [port: 5..."
url: "https://hashnode.com/posts/custom-phoenix-server-port/6516a0fafcf9fa765e982568"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Custom phoenix server port](https://alexcosmas.com/custom-phoenix-server-port?utm_source=hashnode&utm_medium=feed)

Running mix phx.server for a Phoenix project with the default settings will attach the server to port 4000. If you'd like to use a different port in development, you can change it in config/dev.exs config :my\_app, MyApp.Web.Endpoint, http: \[port: 5...

Sep 29, 2023 · 1 min read · alexcosmas.com  
Read the article

## Written by

[Alex Cosmas](https://hashnode.com/@AlexCosmas)

@AlexCosmas

  
[View profile](https://hashnode.com/@AlexCosmas)

Product designer | developer

7+ years of experience building applications for several startupsin various industries creating processes, product lifecycles, workflows, and writing optimized front-end code for mostly Backend/Full-Stack Engineers.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
