Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtplouffe/file-local-ip-replacer
Replace IPs in a file with the local network IP of the host machine
https://github.com/jtplouffe/file-local-ip-replacer
Last synced: 25 days ago
JSON representation
Replace IPs in a file with the local network IP of the host machine
- Host: GitHub
- URL: https://github.com/jtplouffe/file-local-ip-replacer
- Owner: Jtplouffe
- License: apache-2.0
- Created: 2021-12-15T20:31:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-15T22:48:31.000Z (about 3 years ago)
- Last Synced: 2024-10-19T03:05:33.099Z (3 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-local-ip-replacer
Replace IPs in a file with the local network IP of the host machine## Usage:
`file-local-ip-replacer [OPTIONS] `#### Args:
- ``: Path to the file the will have it's IPs replaced#### Options:
- `-h, --help`: Print help information
- `--replace-localhost`: Also replace 'localhost' with local IP
- `-V, --version`: Print version information
## Compiling:
With cargo, you can build using `cargo build --release`.
The program will be located in `target/release/file-local-ip-replacer`
## Running Before launch (JetBrains)
1. Click `Edit Configurations...`
2. Add Before launch -> External Tools
3. Create Tool
- Name: `File local ip replacer`
- Program: path to `file-local-ip-replacer`
- Arguments: `--replace-localhost `
4. `Ok` -> `Apply` -> `Ok`