Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can + 1 operate when the port is occupied #250

Closed
Jeffrey-mu opened this issue Aug 15, 2022 · 9 comments · Fixed by #271
Closed

Can + 1 operate when the port is occupied #250

Jeffrey-mu opened this issue Aug 15, 2022 · 9 comments · Fixed by #271
Labels
help wanted We'd love your help! improvement New feature or request

Comments

@Jeffrey-mu
Copy link

| listen tcp 127.0.0.1:3000: bind: address already in use

For example, running on
127.0.0.1:3001
| listen tcp 127.0.0.1:3001: bind: address already in use
127.0.0.1:3002

@jfmario
Copy link
Contributor

jfmario commented Aug 15, 2022

I'm not sure whether this is a desirable feature or not, but just in case you weren't aware you can do bud run --listen 8080 if you need to select a port other than 3000.

@Jeffrey-mu
Copy link
Author

Thank you very much for your reply. I'll try it

@matthewmueller matthewmueller added improvement New feature or request help wanted We'd love your help! labels Aug 16, 2022
@matthewmueller
Copy link
Contributor

matthewmueller commented Aug 16, 2022

Hey @Jeffrey-mu, thanks for trying Bud! As @jfmario mentioned, you can manually change the port, but I'd definitely like to add support for this. I run into this quite a bit during development.

@Bishwas-py

This comment was marked as off-topic.

@Jeffrey-mu

This comment was marked as off-topic.

@Jeffrey-mu
Copy link
Author

close

@Jeffrey-mu
Copy link
Author

close

@matthewmueller
Copy link
Contributor

Re-opening since we'd still like to do this one.

@Jeffrey-mu
Copy link
Author

哦 That's great!

matthewmueller added a commit that referenced this issue Sep 3, 2022
* increment port

* limit port

* gofmt

* remove debuggy print statements

* broken test

* 3001

* move logic and testing into the socket packages

* fix comment

Co-authored-by: EC2 Default User <ec2-user@ip-172-31-40-12.us-east-2.compute.internal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We'd love your help! improvement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants