title: Remote debugging: port forwarding from PC to iOS/iPhone
body: <p>I want to inspect a web app, running on localhost, loaded in phones via USB. I am able to inspect, and remotely control tabs of all connected phones in Chrome at <em>chrome://inspect/#devices</em>. However, Chrome's DevTools port forwarding feature only works for Android phones, so I am unable to load the localhost app in the connected iPhone.</p>
  
  <p>Any ideas, how to set port forwarding to the iPhone?</p>
  
  <p>These Q&amp;A didn't work for me, but are related and might help others: <a href="https://stackoverflow.com/questions/57405925/reverse-port-forwarding-in-ios-over-usb">Reverse Port Forwarding in iOS over USB</a>, <a href="https://stackoverflow.com/questions/54810329/iphone-testing-port-forwarding-and-localhost">iPhone testing: port forwarding and localhost</a>. Also searched on Ask Different, but all I got was <a href="https://apple.stackexchange.com/questions/9332/port-forwarding-on-iphone">Port forwarding on iPhone?</a>, so I guess it is better to ask here on SO.</p>
  
  <p>I have taken these steps (<a href="https://medium.com/@martin.korvas/synchronous-live-debugging-of-desktop-and-mobile-site-versions-over-usb-using-chrome-vs-code-b27ad40b982e" rel="nofollow noreferrer">Synchronous live debugging of desktop and mobile site versions</a>) to get it up and running, and found this great <a href="https://washamdev.com/debug-a-website-in-ios-safari-on-windows/" rel="nofollow noreferrer">guide to enable Inspection/debugging on the iOS</a>.</p>