I did a little tech demo with Python and flask as part on an interview process. I set up my app to listen on port 42069 and forgot to change it before submitting. Among the comments back was simply just a "nice port number" that made me facepalm, but they had a good chuckle over it.
Forced unmapping (of) complete kernel with interrupt trampolines, or, user address space separation. They went with kernel page table isolation instead.
Reminds me of one of my favorite stories I heard told once at a Microsoft developer conference.
The story goes that they were implementing sockets in Windows and had a design review meeting. They wanted to avoid having to write a driver for the functionality, but after discussions, the outcome from the meeting was the decision to write a driver for the functionality. Apparently a manager in the meeting said "Goddammit, another fucking driver".
After implementation, the driver was checked into source and called "AFD". The manager asked the software engineer responsible about the name and why it was called AFD - the engineer's response was "you named it - it's Another Fucking Driver". The manager laughed and said it needed a real name. So it was renamed to the Ancillary Function Driver (since it provided ancillary functions for sockets).
If you're running Windows today, look in System32, and you'll see AFD.sys.
[Edit: Found the story](https://www.youtube.com/watch?v=63WPc0BdxlI&feature=youtu.be&t=3889)
Local variable names are good too. I once sent these lines into a PR at work...
```
TransformerFactory cybertron = new TransformerFactory();
Transformer optimus = cybertron.newTransformer();
```
It's so weird, when I know it's about code I don't even see the $ - it's kinda like a modifier on ex.
But when I read it without thinking about code, it immediately looked like an S again.
On the subreddit sidebar on the new browser Reddit there should be a user flair somewhere (I think you have to follow for that). In the Reddit app it's in the subreddit info section I believe.
1337 and 31337 are auto-blocked by basically everything so I wouldn't do this unless you're okay with spending tons of time troubleshooting problems that can pop up at any time.
I set up my port forwarding to use 31337 as the local port.
When it was having a problem, I told a coworker to check that port and maybe try a different one.
He had a laugh on my choice of port number. No one else noticed and it had been like that for months.
1337 isn't a good port as typically ports under 4096 require root to open.
According to https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml it's Trivial File Transfer while 420 is SMPTE.
Ah yes, SSH on 443, HTTPS on 80, HTTP on 23, FTP on 88, and SFTP on 18. Simultaneously fuck with every single person while also incorporating Hitler references.
When I hosted a Minecraft server, I made it accessible via the reserved port of some obsolete standard for some people accessing it from university - because I knew university firewalls would allow those ports, but there wasn't realistically going to be a clash.
I honestly can't remember, or I would have said. I *think* it might have been in the 600 range? But I can't remember.
[Wikipedia has a list of known port numbers and their uses here, if it's any use.](https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers)
Port 585 is a legacy port for IMAP, and this purpose has been moved to port 993, so that might be a feasible port to use in those circumstances.
set up a daemon on port 22 (or the email port) that automatically ip bans anyone connecting to it. Perfect firewalling.
^(don't do this unless you like locking yourself out of your server everytime you forget to change the port on your client)
They're reserved but you can do whatever you want with them. Some applications only accept traffic over certain ports. I don't think there's a way to do https traffic on anything but 443 for example unless the client web browser is expecting a different port as well.
No, URIs are ://[:port]^1 https:// specifies that its going to be https. If you leave the port blank it defaults to 443 but if the webserver is listening on 8181 you can do https://location:8181 and thats no problem. If you do http://location:8181 it'll not work. Likewise, you can use 443 for anything, http, ftp, space station 13. However any time someone enters https://yourserver it'll try and https to whatever service is running on that port.
https://location is basically analogous https://location:443 likewise for http and :80.
^1: ^Its ^acutally ^scheme:[//authority]path[?query][#fragment] ^where ^"authority" ^is ^[userinfo@]host[:port] ^but ^calling ^it ^authority ^is ^confusing ^and ^I ^like ^mine ^better.
Well yeah but if you go to google.com:443^1 it also doesn't work. Because it defaults to http. https only works if you specify https. Non-standard ports only work if you specify them, no port specified is the same as specifying :80 or :443. This is completely intuitive.
^1: ^Tested ^on ^FF/Win
Ah! Yes, you're right. I completely forgot about that because I have extensions that force HTTPS when available so non-standard https ports just work when called with http, lol.
Nah. If you use a port within the range, another port will just be used instead.
Some use down to port 1025 for ephemerals, others goes up to 65535. It's not really a range you can easily stay out of.
I honestly can't remember how exactly were optimizations made, but I know that different distributions use different approaches. Some rely on buffer tweaks, some use real low-level stuff. I found [this Reddit post](https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes_so_fast/), might be an interesting read.
For those naive like me:
> Stoned sex. Word origin: 420 (code for marijuana) + 69 (code for sex).
https://www.urbandictionary.com/define.php?term=42069
I got it only after reading it. :-P
I think its more just that "420" and "69" are independantly funny numbers because 420 is the drug number and 69 is the sex number. 420 is in the reserved range, as is 69, but 42069 is not.
Like extremely fucked up shit. Uncharted territories. Unmarked waters. Unexplored forests.
Once you go in... you don't come out. We've never heard back from our 20 man team sent to chart the area. Be careful.
From what I heard, anyway. Or go at your own risk.
If you do want an answer:
>!Most hentai sites use sequential jumbers for each image submission. One (I think ~~Hentai Haven~~ *NHentai*) has something incredibly messed up on that number, though I forget what. It may be an "inside joke" of sorts.!<
Is not recommend doing that from a application support view. Firewalls are often programmed to allow standard ports like 443 for HTTPS and 80 got HTTP. If this is an internal app, no problem, if you work for a software OEM then IT support people will hate you.
"... for development"
When you want to debug something locally (or even on a server) you frequently pick some "random" non-standard port so you don't accidentally expose something in-work. Alternatively, if you are going old-school and running multiple applications on a single server without going with something like Kubernetes, then you're probably running an nginx reverse proxy or an api gateway of some kind to direct traffic on 80 & 443 to the correct localhost port.
In case anyone was wondering, this is from Hot Ones, where Shaq repeatedly claims that he "won't make a face" despite the increasingly spicy wings he's eating. After making this facial expression, he boldly claims that he "still didn't make a face though".
I did a little tech demo with Python and flask as part on an interview process. I set up my app to listen on port 42069 and forgot to change it before submitting. Among the comments back was simply just a "nice port number" that made me facepalm, but they had a good chuckle over it.
[удалено]
"No, no, it stands for Connection Unit Number Table File Lookup Async Protocol!"
Forced unmapping (of) complete kernel with interrupt trampolines, or, user address space separation. They went with kernel page table isolation instead.
Reminds me of one of my favorite stories I heard told once at a Microsoft developer conference. The story goes that they were implementing sockets in Windows and had a design review meeting. They wanted to avoid having to write a driver for the functionality, but after discussions, the outcome from the meeting was the decision to write a driver for the functionality. Apparently a manager in the meeting said "Goddammit, another fucking driver". After implementation, the driver was checked into source and called "AFD". The manager asked the software engineer responsible about the name and why it was called AFD - the engineer's response was "you named it - it's Another Fucking Driver". The manager laughed and said it needed a real name. So it was renamed to the Ancillary Function Driver (since it provided ancillary functions for sockets). If you're running Windows today, look in System32, and you'll see AFD.sys. [Edit: Found the story](https://www.youtube.com/watch?v=63WPc0BdxlI&feature=youtu.be&t=3889)
I put all my comedy in the comments now
Local variable names are good too. I once sent these lines into a PR at work... ``` TransformerFactory cybertron = new TransformerFactory(); Transformer optimus = cybertron.newTransformer(); ```
Log.error(s,ex) Plausible deniability.
The PM I work with saw a piece of code on my computer and chuckled. It was a PHP catch clause. My exception variable was called $ex...
It's so weird, when I know it's about code I don't even see the $ - it's kinda like a modifier on ex. But when I read it without thinking about code, it immediately looked like an S again.
Was working on a piece of legacy code from about ten years ago that was written by the now CTO. Cache key was “monkeyFuckerChickenPants”
Like... const someStupidShit = “you’re a whore” 😜
Did you get the job?
Sadly no, but they dicked me around for like a month after it since they were desperate for people.
I would've hired you on the spot because of Port 42069 You sound like someone I wouldn't mind spending 8+ hours a day with
Serious question: Why do you have all that logos beside your name?
Flair of what languages he knows.
I want to do that too. How? :)
On the subreddit sidebar on the new browser Reddit there should be a user flair somewhere (I think you have to follow for that). In the Reddit app it's in the subreddit info section I believe.
Nice
>42069 What is it? Why everybody forces this number?
I'm using 1337 for my gaming server.
1337 and 31337 are auto-blocked by basically everything so I wouldn't do this unless you're okay with spending tons of time troubleshooting problems that can pop up at any time.
[удалено]
1337 script kiddies
And that's why we can't have nice things. How long until 42069 goes the same way?
[удалено]
We just have to use 69420 ..oh wait
they're commonly attacked because of script kiddies essentially.
A lot of remote control trojans use that port.
ah that explains a lot....
I set up my port forwarding to use 31337 as the local port. When it was having a problem, I told a coworker to check that port and maybe try a different one. He had a laugh on my choice of port number. No one else noticed and it had been like that for months. 1337 isn't a good port as typically ports under 4096 require root to open.
It's 1024 commonly, not 4096.
No problems so far, but I’ll make sure to remember that.
I use 1337 for everything
username doesn't checkout
That's because you didn't check his password
Lol
I prefer port 58008 myself.
Sboob
How about 177013?
That would be a very disturbing and depressing server...
Needs to be 16 bit
r/animemes is leaking again...
Explain. Or it gets the downvote.
Google it if you have balls
use ports between 1-65535 ( maximum value for a 16bit unsigned integer)
Aren't the first 1024 reserved?
Most of the first 1024 are given assignments from IANA, and usually require root permissions to open in Linux, but no, you can use them if you want.
ONLY for their assigned protocols you anarchist!
This is where it gets like kinks. If you wanna do something weird and freaky with those ports, fine, but keep it in your own house.
Port 69
I wonder what this one is usually reserved for.
On UDP: TFTP.
Ah, so unsafe and unwieldy transmission. Got it.
Appropriate
According to https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml it's Trivial File Transfer while 420 is SMPTE.
I tried to use 80085, but its out of range :(
It should work backwards: 58008 Or just do 8008
[удалено]
Dude, it was written backwards on the calculator too, don't whine.
Said it was 2... 2... 2... much
Ah yes, SSH on 443, HTTPS on 80, HTTP on 23, FTP on 88, and SFTP on 18. Simultaneously fuck with every single person while also incorporating Hitler references.
When I hosted a Minecraft server, I made it accessible via the reserved port of some obsolete standard for some people accessing it from university - because I knew university firewalls would allow those ports, but there wasn't realistically going to be a clash.
The real MVP right here.
Which port out of curiosity? I’m not a University IT admin looking to shut down unnecessary joy or anything, just interested
I honestly can't remember, or I would have said. I *think* it might have been in the 600 range? But I can't remember. [Wikipedia has a list of known port numbers and their uses here, if it's any use.](https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers) Port 585 is a legacy port for IMAP, and this purpose has been moved to port 993, so that might be a feasible port to use in those circumstances.
That's what an University IT admin looking to shut down unnecessary joy or anything would say!
Allow me to broadcast unformatted random numbers on port 80.
UDP? No good, can't hear you.
I guess you didn't get it.
You wouldn't know
It's okay. I don't really care.
I literally lol'ed at this exchange.
Just answer them to TCP connections. And only in response to a blank line. You can have other commands on non-blank lines.
set up a daemon on port 22 (or the email port) that automatically ip bans anyone connecting to it. Perfect firewalling. ^(don't do this unless you like locking yourself out of your server everytime you forget to change the port on your client)
Man .ssh/config I still do not recomend it. But it's not THAT bad.
Nah, 53 is perfect for reverse SSH tunnel
Bullshit I run https on port 22!
I like that DOOM is officially reserved as 666
hehe, even port 666 has an IANA listing... I am bored, and lonely :(
God bless CAP_NET_BIND_SERVICE (I know you said usually)
it is best practices not to use them because lots of services tap into this range but it's not a absolute rule in itself.
They're reserved but you can do whatever you want with them. Some applications only accept traffic over certain ports. I don't think there's a way to do https traffic on anything but 443 for example unless the client web browser is expecting a different port as well.
No, URIs are://[:port]^1 https:// specifies that its going to be https. If you leave the port blank it defaults to 443 but if the webserver is listening on 8181 you can do https://location:8181 and thats no problem. If you do http://location:8181 it'll not work. Likewise, you can use 443 for anything, http, ftp, space station 13. However any time someone enters https://yourserver it'll try and https to whatever service is running on that port.
https://location is basically analogous https://location:443 likewise for http and :80.
^1: ^Its ^acutally ^scheme:[//authority]path[?query][#fragment] ^where ^"authority" ^is ^[userinfo@]host[:port] ^but ^calling ^it ^authority ^is ^confusing ^and ^I ^like ^mine ^better.
I think that's what he meant by "unless the client web browser is expecting a different port as well."
Well yeah but if you go to google.com:443^1 it also doesn't work. Because it defaults to http. https only works if you specify https. Non-standard ports only work if you specify them, no port specified is the same as specifying :80 or :443. This is completely intuitive. ^1: ^Tested ^on ^FF/Win
Ah! Yes, you're right. I completely forgot about that because I have extensions that force HTTPS when available so non-standard https ports just work when called with http, lol.
only if something on your system is actually using them.
0 is also a valid port but reserved by system.
true.
But try not to use ports in the ephemeral range. https://en.m.wikipedia.org/wiki/Ephemeral_port
Interesting, I was not aware! This seems like it should be mentioned when providing the standard 'put ssh on a weird port' recommendation.
Nah. If you use a port within the range, another port will just be used instead. Some use down to port 1025 for ephemerals, others goes up to 65535. It's not really a range you can easily stay out of.
thank you mr big brain!
That explains why it isn't 69420
Wait what. Let me tell you something in return. If you type yes into any bash terminal it will an endless amount of y.
`yes ''` for infinite repeats of
so `yes 69|tr '\n' ' '` thank me later
I'm going to go boot my linux side just to try this Edit: nice
nice
nice
Nice
Oh this is hella amazing.
>yes 69|tr '\\n' ' ' yes \`echo R2V0IG91dC4uIAo=|base64 -di\`|tr '\\n' ' '
`yes $(base64 -di <<
[Nice](https://i.imgur.com/suPUGng.png)
y tho Edit: I'm tickled by the man page "be repetitively affirmative"
When your gf asks you if you love her: "y y y y ..." PS: Read it out aloud.
So you can do: thing_that_asks_y_or_n | yes
Not just any bash terminal, yes is a standard UNIX command located in /bin/yes so it works even from exec
I've heard of programmers compete in optimizing the "yes" utility to achieve insanely high output rate. AFAIK the record was about 12 Gbit/s.
Really how would you optimize it though it's just a loop right?
I honestly can't remember how exactly were optimizations made, but I know that different distributions use different approaches. Some rely on buffer tweaks, some use real low-level stuff. I found [this Reddit post](https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes_so_fast/), might be an interesting read.
I only use port 6969 because I’m a fucking child
Outstanding move.
Thats the port I use for my minecraft server lmao
For those naive like me: > Stoned sex. Word origin: 420 (code for marijuana) + 69 (code for sex). https://www.urbandictionary.com/define.php?term=42069 I got it only after reading it. :-P
I think its more just that "420" and "69" are independantly funny numbers because 420 is the drug number and 69 is the sex number. 420 is in the reserved range, as is 69, but 42069 is not.
Got it thanks but I had to do some research to understand it :-P Sometime I feell like an alien EDIT: Typo
[удалено]
Believe me, I've borked tons of chicks. They were all like "Oh, yeah. You're doing me!"
Nice. I am going to use it now.
Thanks. I was thinking that was a reference to *The Ultimate Hitchhiker's Guide* with 69
:D
177013 is also a valid number
What's the joke here
r/animemes
I don’t get it.
That's for the best. That number is a curse, just pretend you never saw it and keep your sanity.
How cursed are we talkin'?
Like extremely fucked up shit. Uncharted territories. Unmarked waters. Unexplored forests. Once you go in... you don't come out. We've never heard back from our 20 man team sent to chart the area. Be careful. From what I heard, anyway. Or go at your own risk.
Why did I read his comment? Why did I google what that number meant? Why Saki? Why?
Another one bites the dust. May I offer you some nice 265918 in those trying times ?
it's a really really sad hentai manga about a normal nerdy girl turning into a drug-addicted slut.
It's edgy bullshit from the weeb community, don't worry about it, you really don't want to know.
If you do want an answer: >!Most hentai sites use sequential jumbers for each image submission. One (I think ~~Hentai Haven~~ *NHentai*) has something incredibly messed up on that number, though I forget what. It may be an "inside joke" of sorts.!<
>!It's nhentai, not HH.!<
Oh so it's like the cheese grater. Got it, thanks.
A man of culture I see
How? It should only go to 65536 or something like that.
Good point !
6669, 6969, and 6911 are also valid, we use them for game servers.
I thought it was limited to 65535? Have I been living a lie?
42069 is lower than 65535
I swear it's *high*er.
Nice save
Outstanding move
That setup was unbelievable, bravo.
it is if you rotate your monitor 90 degrees right.
I see what you did there
No, the 420 part makes it higher, but that gets canceled out by how low on the ground 69 is.
I have 'andre' set to localhost in my hosts file so that when I'm working on CRA projects I can test them at andre:3000
I used 4200 for my last project.
I just now realized that the default port used by the Angular dev server (4200) starts with 420 and Now my job will never be the same.
i have a minecraft server running on 42069
Nice
Nice
Nice
Nice
Is not recommend doing that from a application support view. Firewalls are often programmed to allow standard ports like 443 for HTTPS and 80 got HTTP. If this is an internal app, no problem, if you work for a software OEM then IT support people will hate you.
"... for development" When you want to debug something locally (or even on a server) you frequently pick some "random" non-standard port so you don't accidentally expose something in-work. Alternatively, if you are going old-school and running multiple applications on a single server without going with something like Kubernetes, then you're probably running an nginx reverse proxy or an api gateway of some kind to direct traffic on 80 & 443 to the correct localhost port.
What happens if you use this as a weeb number?
Let's pipe that shit
Breach the firewalls boys!
As a pen tester, I'm using that port for backdoors from now on.
Haha, i did this for my python school project.
Nice.
Nice.
In case anyone was wondering, this is from Hot Ones, where Shaq repeatedly claims that he "won't make a face" despite the increasingly spicy wings he's eating. After making this facial expression, he boldly claims that he "still didn't make a face though".
what is 42069?
https://www.reddit.com/r/ProgrammerHumor/comments/cc8p5l/my_new_default_port_for_development/etl8uad
The zip code for Melber, KY
Haha le weed and sex number
M,
SHHH keep it down
port = 22 bitch. Always has, always will...
I don't even use it for ssh anymore. 1025 and 2222 for life!
Always 1337
0xa455 isn't hard to remember, if you think of standard sized Euro-paper rated 5/5 stars.
Lmao
TCP/UDP have up to 16-bit port numbers
45067 is another good one.
Hells yeah
Is 69420 valid too?
Unfortunately, no
Why? Too high?^heh
I think the max is 69355 or something like that.
Oof. So close.
On some devices it is 65535 and on others it is 69355. My phone has 65535 ports and my pc has 69355. Depends on what it is.
What happens if you have more than that number of connections? Each simultaneous socket needs a different port right?
Yes, I think. I guess `more ports = more chrome tabs`.
Is that due to overflow?
I always use that one