LoginSignup
3
3

More than 5 years have passed since last update.

adbのforwordで詰まった件

Last updated at Posted at 2014-02-13

事象

  • adb forwardしたらerror
forwarding
$ adb -s hogehoge forward tcp:8080 tcp:8080
error: cannot bind to socket

原因

  • 8080がすでに使われてる
netstat
netstat -na | grep 8080
  • Jenkinsおじさんが8080を使ってた

対処方法

  • 8080以外でforwardする
forwarding
// 一例
$ adb -s hogehoge forward tcp:9002 tcp:8080

or

  • Jenkinsを一度停止してから、forwardingして、その後にJenkinsを立ち上げる
forwarding
// Jenkins停止
$ sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
// 8080にフォワード   
$ adb -s hogehoge forward tcp:8080 tcp:8080
// Jenkins起動
$ sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

参考

3
3
0

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
3
3