LoginSignup
1

More than 3 years have passed since last update.

ChromebookでWEBサーバーをたてよう

Posted at

何の記事?

Chromebookでwebサーバーを立てて、ブラウザからアクセスします。

使うもの

Chromebook
VS Code
Spring Boot

普通に立てる

まずはVS CodeからSpring Bootで普通に立ててみます。
VS CodeにSpring Bootを入れるところは省略します。

image.png

立ち上がりました。
今回は訳があってポート'8081'を使用しています。
それではブラウザからアクセスしてみましょう。

image.png

だめでした。

なんで?

ChromeOSでlinuxを使うということは、仮想環境を立てるということです。
なので、ChromeOS側のブラウザからアクセスするときに、localhostではアクセスできません。

なので、ホスト名を変えてアクセスしてみます。

image.png

これでChromebookで立てたWEBサーバーにアクセスすることができました。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1