cloud_scripts/listen_on_ports.py simple http mock server - #2
Open
tarzanek wants to merge 1 commit into
Open
Conversation
This can be used for quick port testing, to start a simple service. E.g. $ python3 listen_on_ports.py -a 10.0.2.15 -p 1111 -p 2222 -p 3333 Starting on address 10.0.2.15 Starting on port 1111 Starting on port 3333 Starting on port 2222 Starting on address localhost Starting on port 1111 Starting on port 3333 Starting on port 2222 All ports are listening, press ENTER key to stop and exit. $ curl 10.0.2.15:2222 up
tarzanek
commented
Jul 10, 2024
ContributorAuthor
@vladzcloudius can you merge? |
vladzcloudius
requested changes
Aug 29, 2024
Owner
There was a problem hiding this comment.
Linux has a much more powerful tool for similar things: nc.
Does your script have any advantage on using nc, @tarzanek ?
tarzanek
commented
Oct 31, 2024
ContributorAuthor
the only advantage is it gets http reply back |
vladzcloudius
commented
Dec 5, 2024
Owner
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This can be used for quick port testing, to start a simple service.
E.g.