Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webhook Error: Issue while integrating Github with Jenkins

Tags:

webhooks

There was an error setting up your hook: Sorry, the URL host localhost is not supported because it isn't reachable over the public Internet. While adding webhook getting this error.

like image 711
Ugesh 247 Avatar asked Mar 20 '26 07:03

Ugesh 247


1 Answers

You are using a local ip address. If you run ipconfig or ifconfig, you see the "local" ip address.

Github needs your public ip address. For example go to https://whatismyipaddress.com/ and it will show your public address. If you're running Jenkins on localhost:8080, then Github needs http://myPublicIP:8080 as the url. Then you have to forward the port 8080 on your router to the computer running Jenkins.

like image 149
Bret Hess Avatar answered Mar 24 '26 08:03

Bret Hess