Goto: Admin Area -> Settings -> Network -> Outbound Requests Enable Allow requests to the local network from web hooks and services and Save
Example: https://gitlab.172.17.0.3.nip.io/admin/application_settings/network
Read More: https://docs.gitlab.com/ee/security/webhooks.html