iOS 10.0.1 "Not allowed to use restricted network port"

I just upgraded my iPad Mini to iOS 10.0.1. It is now running Safari 10. I tried to visit an internal/private IP on port 4190 using HTTP. I get an error that says:


Safari cannot open the page.

The error was: "Not allowed to use restricted network port".


On iOS 9.3 using Safari 9, the same URL opens fine without this error.


Not sure what has changed from iOS 9.3 to iOS 10.0.1, but I'm unable to visit a web site that I was able to visit previously.


I know WebKit keeps a list of ports that you can not go (e.g. 6666), but 4190 is not a restricted port as far as I know. I'm not sure why I'm getting this error.

iPad mini Wi-Fi, iOS 10

Posted on Sep 20, 2016 11:32 AM

Reply
1 reply

Sep 21, 2016 8:52 AM in response to sunk818

It seems I was looking at the wrong source code.


I finally got a clue where to look after visiting the Safari Technology Preview 13 webpage.


https://trac.webkit.org/browser/releases/Apple/Safari%20Technology%20Preview%201 3/WebCore/platform/URL.cpp


It seems port 4190 got recently added to the list of blockedPortList


2306 2049, // NFS
2307 3659, // apple-sasl / PasswordServer [Apple addition]
2308 4045, // lockd
2309 4190, // ManageSieve [Apple addition]
2310 6000, // X11
2311 6665, // Alternate IRC [Apple addition]
2312 6666, // Alternate IRC [Apple addition]
2313 6667, // Standard IRC [Apple addition]
2314 6668, // Alternate IRC [Apple addition]
2315 6669, // Alternate IRC [Apple addition]
2316 invalidPortNumber, // Used to block all invalid port numbers
2317 };
2318 const unsigned short* const blockedPortListEnd = blockedPortList + ***_ARRAY_LENGTH(blockedPortList);

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iOS 10.0.1 "Not allowed to use restricted network port"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.