Skip to content

Commit d0af890

Browse files
authored
chore: Update README (#132)
Adds more detail about connecting ton-http-api to the local liteserver.
1 parent 111dff3 commit d0af890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ To point the HTTP API to your own lite server you should set `TON_API_TONLIB_LIT
146146
```
147147
python -c 'import codecs; f=open("liteserver.pub", "rb+"); pub=f.read()[4:]; print(str(codecs.encode(pub,"base64")).replace("\n",""))'
148148
```
149+
- The config generated with `mytonctrl` > `installer` > `clcf` adds the public IP of your server in the config file. If there's an active firewall on your server, `ton-http-api` won't be able to connect to the local lite server. In that case, replace the value of lite server's `ip` in `local.config.json` with `2130706433`, which is the integer equivalent of `127.0.0.1` / `localhost`.
149150
- Once config file is created assign variable `TON_API_TONLIB_LITESERVER_CONFIG` to its path, run `./configure.py` and rebuild the project.
150151

151152
#### How to run multiple API instances on single machine?

0 commit comments

Comments
 (0)