Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`