wsl上にコンテナを構築したときのそれぞれのIPアドレスsteemCreated with Sketch.

in hive-161179 •  2 years ago  (edited)

image.png

こんにちは、@yasuです。

ちょっと、あたまがこんがらがったので、図にしてみました^^

  • 自宅パソコンwsl上のUbuntu側
  • 自宅パソコンwindows側
  • conoha VPS のUbuntu

自宅パソコンwsl上のUbuntu側

ip a

192.30.197.70と172.30.192.1は同一ネットワーク上のアドレスなんですね。

また、eth0のネットワークアドレスは固定ではありません。ときどき変わりました。

image.png

APIノードからアカウント情報を取得してみます。(コンテナのIPを指定)

curl --data "{\"jsonrpc\":\"2.0\", \"method\":\"condenser_api.get_accounts\", \"params\":[[\"yasu\"]], \"id\":1}" http://172.17.0.2:8090

image.png

自宅パソコンwindows側

ipconfig

image.png

APIノードからアカウント情報を取得してみます。(wslのIPを指定)

curl --data "{\"jsonrpc\":\"2.0\", \"method\":\"condenser_api.get_accounts\", \"params\":[[\"yasu\"]], \"id\":1}" http://172.30.197.70:8090

image.png

conoha VPS のUbuntu

image.png

APIノードからアカウント情報を取得してみます。(グローバルIPを指定)

image.png
学習用のVPSなのでグローバルIPが漏れても大丈夫なのですが、一応隠しておきます。

https://steemitimages.com/300x0/

ありがとうございました。

いらすとや
steemit サインアップ
steemit 知識
日本語 Steemit Discord (超初心者~誰でも)

image.png

image.png

@yasu.witness は、証人ノードと、seedノードを立ち上げています。STEEMブロックチェーン安定化の寄与となるよう取り組んでいます。また、APIノードの立ち上げに向けて、今は技術を習得しています。30票の1つを与えてくださると嬉しいです。
Simply go to the Steemit Wallet Witness list, scroll to the bottom, and fill in the form:
image.png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

@yasu さん、こんにちは。

tomoyan.witnessに投票お願いします👇

https://steemitwallet.com/~witnesses

SPデレゲーション報酬

Wintessに投票すると毎日の報酬がアップ!詳しくは👇
https://steemit.com/hive-161179/@japansteemit/sp-delegation-reward-update

💡 アップボートガイド 💡

分からない事は何でも質問して下さい🙇