Testing a Web-hook Dial TCP I/O Timeout


#1

In “try.gogs.io”, I am directly testing the delivery of a web-hook to start a job in Jenkins.

However, I get the following response:

{Delivery: Post http://192.168.3.123:8080/gogs-webhook/?job=FreeStyle+Game+of+Life+by+Web+Hook: dial tcp 192.168.3.123:8080: i/o timeout"}

I have tested the same web-hook in my local “gogs” repository and it works correctly.

Gogs Version : 0.11.62.0817
OS: opensSUSE Leap 42.2


#2

192.168.*.* is internal IP address, public network won’t be able to reach it. You have to know that.


#3

192.168.3.123 is the IP address for Jenkins that I am running.
If this is an internal IP address, how is it possible for this to work?
I must be missing something here.

Comment : Error messages generated by the network could be much more helpful and intelligent. Stating “TCP I/O Timeout” does not lead to a quick solution. It ultimately comes down to the purpose of an error message. It is good software engineering practice that error messages should try to suggest how the error might be corrected.


#4

Maybe helpful: https://whatismyipaddress.com/private-ip


#5

The web-site had interesting information about public and private networks but did not address my problem of setting the correct “url” for the web-hook.