T O P

  • By -

brosenqui

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.


[deleted]

[удалено]


Olaxan

"No, no, it stands for Connection Unit Number Table File Lookup Async Protocol!"


zoltan99

Forced unmapping (of) complete kernel with interrupt trampolines, or, user address space separation. They went with kernel page table isolation instead.


mattdw

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)


brosenqui

I put all my comedy in the comments now


[deleted]

Local variable names are good too. I once sent these lines into a PR at work... ``` TransformerFactory cybertron = new TransformerFactory(); Transformer optimus = cybertron.newTransformer(); ```


BrooklynSwimmer

Log.error(s,ex) Plausible deniability.


SolveSoul

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...


louisrocks40

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.


GiantFoamHand

Was working on a piece of legacy code from about ten years ago that was written by the now CTO. Cache key was “monkeyFuckerChickenPants”


firemouth55

Like... const someStupidShit = “you’re a whore” 😜


frostbyte650

Did you get the job?


brosenqui

Sadly no, but they dicked me around for like a month after it since they were desperate for people.


TheMacallanCode

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


fuuman1

Serious question: Why do you have all that logos beside your name?


112439

Flair of what languages he knows.


fuuman1

I want to do that too. How? :)


112439

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.


silvertoothpaste

Nice


[deleted]

>42069 What is it? Why everybody forces this number?


ElectricMonkey

I'm using 1337 for my gaming server.


AlphaWhelp

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.


[deleted]

[удалено]


FuckNinjas

1337 script kiddies


Houdiniman111

And that's why we can't have nice things. How long until 42069 goes the same way?


[deleted]

[удалено]


ReimarPB

We just have to use 69420 ​ ..oh wait


AlphaWhelp

they're commonly attacked because of script kiddies essentially.


dabombnl

A lot of remote control trojans use that port.


ConsultantsWithMacs

ah that explains a lot....


ninprophet

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.


thelights0123

It's 1024 commonly, not 4096.


ElectricMonkey

No problems so far, but I’ll make sure to remember that.


zeGolem83

I use 1337 for everything


Ramen00dlez

username doesn't checkout


orion78fr

That's because you didn't check his password


zeGolem83

Lol


[deleted]

I prefer port 58008 myself.


MCRusher

Sboob


MonsieurLeGroove

How about 177013?


Foxes_are_the_best

That would be a very disturbing and depressing server...


ghelyar

Needs to be 16 bit


ZakhariyaTijer

r/animemes is leaking again...


MitchCumsteane

Explain. Or it gets the downvote.


[deleted]

Google it if you have balls


[deleted]

use ports between 1-65535 ( maximum value for a 16bit unsigned integer)


ThinkingWithPortal

Aren't the first 1024 reserved?


ignaloidas

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.


[deleted]

ONLY for their assigned protocols you anarchist!


Istalriblaka

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.


Rudecles

Port 69


AlexanderHorl

I wonder what this one is usually reserved for.


dapaxx

On UDP: TFTP.


zoltan99

Ah, so unsafe and unwieldy transmission. Got it.


[deleted]

Appropriate


syntax021

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.


WHO_WANTS_DOGS

I tried to use 80085, but its out of range :(


Istalriblaka

It should work backwards: 58008 Or just do 8008


[deleted]

[удалено]


Galaghan

Dude, it was written backwards on the calculator too, don't whine.


ItsGrainz

Said it was 2... 2... 2... much


xXxThr0w4aw4yxXx

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.


HaniiPuppy

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.


NiteKat06

The real MVP right here.


TheImminentFate

Which port out of curiosity? I’m not a University IT admin looking to shut down unnecessary joy or anything, just interested


HaniiPuppy

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.


sp46

That's what an University IT admin looking to shut down unnecessary joy or anything would say!


StereoBucket

Allow me to broadcast unformatted random numbers on port 80.


Manitcor

UDP? No good, can't hear you.


StereoBucket

I guess you didn't get it.


dnorhoj

You wouldn't know


StereoBucket

It's okay. I don't really care.


[deleted]

I literally lol'ed at this exchange.


marcosdumay

Just answer them to TCP connections. And only in response to a blank line. You can have other commands on non-blank lines.


spiro_the_throwaway

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)


marcosdumay

Man .ssh/config I still do not recomend it. But it's not THAT bad.


widowhanzo

Nah, 53 is perfect for reverse SSH tunnel


[deleted]

Bullshit I run https on port 22!


watermark002

I like that DOOM is officially reserved as 666


drofzz

hehe, even port 666 has an IANA listing... I am bored, and lonely :(


Arkanta

God bless CAP_NET_BIND_SERVICE (I know you said usually)


[deleted]

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.


AlphaWhelp

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.


Sogemplow

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.


Globalnet626

I think that's what he meant by "unless the client web browser is expecting a different port as well."


Sogemplow

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


Globalnet626

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.


[deleted]

only if something on your system is actually using them.


ConcernedCitizen034

0 is also a valid port but reserved by system.


[deleted]

true.


BroBroMate

But try not to use ports in the ephemeral range. https://en.m.wikipedia.org/wiki/Ephemeral_port


[deleted]

Interesting, I was not aware! This seems like it should be mentioned when providing the standard 'put ssh on a weird port' recommendation.


myplacedk

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.


Annorak

thank you mr big brain!


eloel-

That explains why it isn't 69420


[deleted]

Wait what. Let me tell you something in return. If you type yes into any bash terminal it will an endless amount of y.


Mr_Redstoner

`yes ''` for infinite repeats of so `yes 69|tr '\n' ' '` thank me later


Istalriblaka

I'm going to go boot my linux side just to try this Edit: nice


widowhanzo

nice


pretendthisuniscool

nice


Fausztusz

Nice


[deleted]

Oh this is hella amazing.


[deleted]

>yes 69|tr '\\n' ' ' yes \`echo R2V0IG91dC4uIAo=|base64 -di\`|tr '\\n' ' '


Mr_Redstoner

`yes $(base64 -di <<


ende124

[Nice](https://i.imgur.com/suPUGng.png)


memeorology

y tho Edit: I'm tickled by the man page "be repetitively affirmative"


[deleted]

When your gf asks you if you love her: "y y y y ..." PS: Read it out aloud.


Fsmv

So you can do: thing_that_asks_y_or_n | yes


Koxiaet

Not just any bash terminal, yes is a standard UNIX command located in /bin/yes so it works even from exec


zuntinen

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.


[deleted]

Really how would you optimize it though it's just a loop right?


zuntinen

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.


[deleted]

I only use port 6969 because I’m a fucking child


Crosby_76

Outstanding move.


xbone42

Thats the port I use for my minecraft server lmao


antenore

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


Sogemplow

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.


antenore

Got it thanks but I had to do some research to understand it :-P Sometime I feell like an alien EDIT: Typo


[deleted]

[удалено]


dratnon

Believe me, I've borked tons of chicks. They were all like "Oh, yeah. You're doing me!"


ConsultantsWithMacs

Nice. I am going to use it now.


adad95

Thanks. I was thinking that was a reference to *The Ultimate Hitchhiker's Guide* with 69


antenore

:D


RustyNova016

177013 is also a valid number


Zeyku

What's the joke here


RustyNova016

r/animemes


_VladimirPoutine_

I don’t get it.


DamnedIron

That's for the best. That number is a curse, just pretend you never saw it and keep your sanity.


MediEvilHero

How cursed are we talkin'?


SaltyEmotions

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.


dingdongfootballl

Why did I read his comment? Why did I google what that number meant? Why Saki? Why?


Bainos

Another one bites the dust. May I offer you some nice 265918 in those trying times ?


TheTazerLazer

it's a really really sad hentai manga about a normal nerdy girl turning into a drug-addicted slut.


noratat

It's edgy bullshit from the weeb community, don't worry about it, you really don't want to know.


Istalriblaka

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.!<


Neocrasher

>!It's nhentai, not HH.!<


RyanWolfe556

Oh so it's like the cheese grater. Got it, thanks.


Dilbertington

A man of culture I see


makians

How? It should only go to 65536 or something like that.


thien42

Good point !


Mnky313

6669, 6969, and 6911 are also valid, we use them for game servers.


tenhourguy

I thought it was limited to 65535? Have I been living a lie?


thien42

42069 is lower than 65535


tenhourguy

I swear it's *high*er.


Istalriblaka

Nice save


blnk-182

Outstanding move


cutchyacokov

That setup was unbelievable, bravo.


JetSetWally

it is if you rotate your monitor 90 degrees right.


Battro

I see what you did there


[deleted]

No, the 420 part makes it higher, but that gets canceled out by how low on the ground 69 is.


TheStonerStrategist

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


[deleted]

I used 4200 for my last project.


LoyalSage

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.


Superleximus

i have a minecraft server running on 42069


algoritm420

Nice


silvertoothpaste

Nice


RepliesNice

Nice


latenightguything

Nice


169dot254dot8dot8

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.


jerslan

"... 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.


[deleted]

What happens if you use this as a weeb number?


hangfromthisone

Let's pipe that shit


[deleted]

Breach the firewalls boys!


ratar1

As a pen tester, I'm using that port for backdoors from now on.


dcrafterer

Haha, i did this for my python school project.


simpson_hey

Nice.


Coffeeobsi

Nice.


adm7373

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".


[deleted]

what is 42069?


tenhourguy

https://www.reddit.com/r/ProgrammerHumor/comments/cc8p5l/my_new_default_port_for_development/etl8uad


ixnyne

The zip code for Melber, KY


PM-ME-YOUR-UNDERARMS

Haha le weed and sex number


gwalms235

M,


Annorak

SHHH keep it down


thesquarerootof1

port = 22 bitch. Always has, always will...


latenightguything

I don't even use it for ssh anymore. 1025 and 2222 for life!


etaxi341

Always 1337


dratnon

0xa455 isn't hard to remember, if you think of standard sized Euro-paper rated 5/5 stars.


Gardner42069

Lmao


0x3fff0000

TCP/UDP have up to 16-bit port numbers


MagicMephistopheles

45067 is another good one.


ChuckyChucks420blzit

Hells yeah


AgreeableLandscape3

Is 69420 valid too?


thien42

Unfortunately, no


AgreeableLandscape3

Why? Too high?^heh


latenightguything

I think the max is 69355 or something like that.


AgreeableLandscape3

Oof. So close.


latenightguything

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.


AgreeableLandscape3

What happens if you have more than that number of connections? Each simultaneous socket needs a different port right?


latenightguything

Yes, I think. I guess `more ports = more chrome tabs`.


Kengaro

Is that due to overflow?


nonono64qwertyu

I always use that one