Hacker Newsnew | past | comments | ask | show | jobs | submit | shj2105's commentslogin

I’m so confused. What is the difference between a peer relay and a DERP server that is self hosted?

The issue I have is I’m trying to connect two devices where one is behind a CGNAT that always causes the connection to be relayed even though the other one is not behind a cgnat with proper port forwarding. Would a peer relay solve this but is it like a DERp where I have to host it on a VPS separate from my existing two networks or is this something different where I can host the peer relay on the network not behind a CGNAT and somehow it will link the two networks through it?


You should be able to stand up a peer relay on an existing tailscale device - so your proposal is correct! Try setting one of the devices up as a peer relay per the docs here: https://tailscale.com/docs/features/peer-relay

I’m so confused. What is the difference between a peer relay and a DERP server that is self hosted?

(Tailscale founder here) Two main differences: first, every DERP server used by your tailnet must be accessible by every node on your tailnet at all times, otherwise you get hard-to-debug netsplits. That's a very high bar to maintain so we've historically recommended you don't try. In contrast, peer relays are "if a given pair of nodes can connect through any of the relays, go for it" so deploying one is always a performance and reliability improvement.

Secondly, peer relays support UDP while DERP is TCP-only. That would be fixable by simply improving the DERP protocol, but as we explored that option, we decided to implement the Peer Relay layer instead as a more complete solution.


Hmm got it not sure I entirely understand. The issue I have is I’m trying to connect two devices where one is behind a hard CGNAT that always causes the connection to be relayed even though the other one is not behind a cgnat with proper port forwarding. Would a peer relay solve this but is it like a DERP where I have to host it on a VPS separate from my existing two networks or is this something different where I can host the peer relay on the same network not behind a CGNAT and somehow it will link the two networks through it?

> every DERP server used by your tailnet must be accessible by every node on your tailnet at all times, otherwise you get hard-to-debug netsplits.

What would allow a given pair of nodes access a peer relay? Isn’t the peer relay by default also accessible by every node on the tailnet since it’s in the tailnet as well?


What happens if your peer relay device is behind CGNAT/SymNat?

Also, offtopic question: is Tailscale named after the idea of UDP packets “tailgating” a connection?


Talking out my ass, but as with all things Tailscale, not much, aside from easier to use / less manual setup.

Nothing they do was impossible before, but their big win is making world wide private networking easy and accessible.

I’ve been on-boarding my friends who have their own local media servers setup so we can all share/stream content from each other.


Anyone have the full article?



Not the full article


Apologies


I disagree without being more explicit eg don’t write nested if then statements three tiers or more deep Claude will write very bad code like this.


what would this do?


It increases the number of jobs at the job factory. You write it into a Chrome extension and name it 2954.


How is this different than Agents.md? Isn’t it just easier just to have one agents.md file?


Agents.md is usually only a part of ai coding tool config. LNAI handles syncing additional configs like skills, sub-dir rules, mcps, permissions to every tool. Additionally, even thought AGENTS.md is popular, not every tool supports that standard.


Why is plain Claude code outdated? I thought that’s what most people are using right now that are AI forward. Is it Ralph loops now that’s the new thing?


Plain Claude Code doesn’t have enough scaffolding to handle large projects

At a base level, people are “upgrading” their Claude Code with custom skills and subagents - all text files saved in .claude/agents|skills.

You can also use their new tasks primitive to basically run a Ralph-like loop

But at the edges, people are using multiple instances, each handling different aspects in parallel - stuff like Gas Town

Tbf you can still get a lot of mileage out of vanilla Claude Code. But I’ve found that even adding a simple frontend design skill improves the output substantially


Is there anywhere where we can learn more about creating your own agents/skills? Maybe some decent public repos that you could recommend.


You can just ask Claude to create them. They’re just markdown files

Anthropic’s own repo is as good place as any

https://github.com/anthropics/skills


Not working on mobile iOS


what's not working for you?


Why do you go through all the trouble of uploading to Claude code for web only to download it back and run it in Claude code terminal? Are there different rate limits for each endpoint so that’s why you do it? Why not just work entirely using Claude code terminal locally?


I do most of my initial work in Claude Chat, on my phone. I have my best ideas when I'm away from my desk. Originally, Claude for the Web was only on the iPhone not Android - but it is now.

My iPhone 11 won't let you download certain files, and file handling on the iPhone is awful.

I guess I've just got used to the flow. I don't always do it like that, it was just one example.


This post is AI generated slop.


I'm the author.. and I actually wrote this so maybe I need to stop reading AI posts and thinking that it's good writing?


You're absolutely right!


I thought it seemed like an especially good read!


What makes you think it is?


A title per paragraph (slight exaggeration), half of the form The X, The Y, The Z. Every section ends with "it's not x; it's y" contrast framing.

But really the only issue is it's monotone linkedin still insight fluff and you can't tell where the prompt ends and the LLM crap begins. I expect something interesting was put into the LLM, but the LLM has destroyed the author's ability to communicate it with me effectively. Everything is overinflated to the same level of importance and I can't tell what the author actually cared about expressing.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: