Request on loopback from external IP" response (400)

Hi team,

I am getting the below error while running appium server via code.I have tried no proxy etc.But nothing is working

[ADB]e[39m Running ‘D:\sw\tools_r25.2.3-windows\platform-tools\adb.exe -P 5037 -s 1bbbe0959804 shell pm list instrumentation’
[debug] e[35m[UiAutomator2]e[39m Instrumentation target ‘io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner’ is available
[debug] e[35m[UiAutomator2]e[39m Forwarding UiAutomator2 Server port 6790 to 8200
[debug] e[35m[ADB]e[39m Forwarding system: 8200 to device: 6790
[debug] e[35m[ADB]e[39m Running ‘D:\sw\tools_r25.2.3-windows\platform-tools\adb.exe -P 5037 -s 1bbbe0959804 forward tcp:8200 tcp:6790’
[debug] e[35m[UiAutomator2]e[39m No app capability. Assuming it is already on the device
[debug] e[35m[UiAutomator2]e[39m Performing shallow cleanup of automation leftovers
[debug] e[35m[UiAutomator2]e[39m No obsolete sessions have been detected (400 - “Request on loopback from external IP\n<BODY BGCOLOR=“white” FGCOLOR=“black”>

Request on loopback from external IP


\n<FONT FACE=“Helvetica,Arial”>\nDescription: Your request is prohibited because the request is on loopback from external IP.\n
\n\n\n \u0000”)
[debug] e[35m[ADB]e[39m Running ‘D:\sw\tools_r25.2.3-windows\platform-tools\adb.exe -P 5037 -s 1bbbe0959804 shell am force-stop io.appium.uiautomator2.server.test’
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.3.0
e[35m[UiAutomator2]e[39m Using UIAutomator2 server from ‘C:\Users\626042\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk’ and test from ‘C:\Users\626042\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online…
[debug] e[35m[ADB]e[39m Creating ADB subprocess with args: ["-P",5037,"-s",“1bbbe0959804”,“shell”,“am”,“instrument”,"-w",“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
[debug] e[35m[WD Proxy]e[39m Matched ‘/status’ to command name ‘getStatus’
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
e[35m[WD Proxy]e[39m Got an unexpected response with status 400: Request on loopback from external IP
e[35m[WD Proxy]e[39m

Request on loopback from external IP



e[35m[WD Proxy]e[39m
e[35m[WD Proxy]e[39m Description: Your request is prohibited because the request is on loopback from external IP.

e[35m[WD Proxy]e[39m

e[35m[WD Proxy]e[39m
e[35m[WD Proxy]e[39m
e[35m[WD Proxy]e[39m

It looks like some enterprise proxy/firewall is blocking the requests. Consider contacting your system administrator