Question about port numbers in a url

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
28,087
Reaction score
17,859
Good afternoon on this great weekend.

I have this which is giving headaches. I'm not overly familiar with url's and what not.

I do know that this works.

Works.jpg

But this does not and it throws an "Invalid Port" error. Even the url changes color. Is there a reason for this?

NotWork.jpg

If there is a way around this I would really appreciate your feedback.
 
Good afternoon on this great weekend.

I have this which is giving headaches. I'm not overly familiar with url's and what not.

I do know that this works.

View attachment 1443469

But this does not and it throws an "Invalid Port" error. Even the url changes color. Is there a reason for this?

View attachment 1443471

If there is a way around this I would really appreciate your feedback.

haiboo i thought you an experienced programmer.Anyway iam not a programmer , but port numbers only go up to port 65535 , so thats why its throwing an invalid error.Make sure you select a port within the range of 1 to 65535.
 
haiboo i thought you an experienced programmer.Anyway iam not a programmer , but port numbers only go up to port 65535 , so thats why its throwing an invalid error.Make sure you select a port within the range of 1 to 65535.
* 0-65535 technically. Although port 0 is a wildcard
 
I think deep down I didn't want to believe it was true, that ports can run out. I shall write a complaint to the internet and demand more ports.
cool i understand.Most programmers think that things like storage , memory , network capacity and cpu resources are infinite and will never run out.You have to explain to them , to try write code that is streamlined and optimized so their applications functions well :giggle:;):notworthy:
 
Last edited:
FYI, the 16-bit constraint comes from the TCP specification.
 
Top
Sign up to the MyBroadband newsletter
X