Questions tagged [router]

A router is a device that forwards data packets across multiple networks. DO NOT USE THIS TAG FOR QUESTIONS REGARDING URL ROUTING OR SINGLE PAGE APPLICATION ROUTERS

NOTE: This tag should not be used for questions on configuring or port forwarding applications on routers. Such questions are off topic for StackOverflow, and should be directed to SuperUser instead. Questions involving routing in single page applications should insetad be tagged with the appropriate routing library such as or . Question asking about routing server side applications should be tagged with and the appropriate framework.

Excerpt from Wikipedia on March 29th 2011:

A router is a device that forwards data packets across computer networks. Routers perform the data "traffic directing" functions on the Internet. A router is a microprocessor-controlled device that is connected to two or more data lines from different networks. When a data packet comes in on one of the lines, the router reads the address information in the packet to determine its ultimate destination. Then, using information in its routing table, it directs the packet to the next network on its journey. A data packet is typically passed from router to router through the networks of the Internet until it gets to its destination computer. Routers also perform other tasks such as translating the data transmission protocol of the packet to the appropriate protocol of the next network, and preventing unauthorized access to a network by the use of a firewall.

The most familiar type of routers are home and small office routers that simply pass data, such as web pages and email, between the home computers and the owner's cable or DSL modem, which connects to the Internet (ISP). However more sophisticated routers range from enterprise routers, which connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone.

3818 questions
15
votes
1 answer

How to nest more than 2 levels of children routes in Angular 5?

I have this sample routes in angular 5. The 3 components are imported to this module. The component mark is generated under the folder of john component and james component is generated under the folder of mark component. I want to load james…
Jay Marz
  • 1,861
  • 10
  • 34
  • 54
15
votes
1 answer

Angular2 Exploring Resolved Data in canActivate Guard?

Is it possible to access resolved data of a route (-Resolver) inside a canActivate guard. Currently I can access the resolved data in the component by ngOnInit() { this.route.data .subscribe((data: { example: Array }) => { …
Max Solid
  • 1,213
  • 3
  • 21
  • 32
15
votes
1 answer

How do I fix internet connection to vmware I am running on windows 8rt?

Few days ago it was working fine but I don't know what happened yesterday it stopped working.The internet connection is fine in windows os but when I open vmware workstation then it won't work.In my network sharing I have vmware network adapter…
syed shah
  • 678
  • 1
  • 6
  • 22
15
votes
3 answers

Best way to do dynamic routing with Express.js (node.js)

I'm trying to create a simple CMS with express.js that dynamically creates routes. It gets a JSON from a database that looks like this: pagesfromdb = { home = { paths = ['/','/home','/koti'], render = 'home.ejs', fi_FI =…
14
votes
1 answer

Multiple routers with backbone.js

Can I use multiple routers in backbone.js, that don't interfere with each other route-wise, without any issues? Or is there something that I should be concerned about? Code sample: myapp.routers.main = Backbone.Router.extend({ routes : { "":…
Industrial
  • 41,400
  • 69
  • 194
  • 289
14
votes
4 answers

What different between App Router and Pages Router in Next.js

I have started learning next.js in Next.js official documentation: next.js official document The document mentions two router features; App Router and Pages Router. Which one is best for development? Can anyone explain the difference between App…
Ragu
  • 772
  • 9
  • 29
14
votes
2 answers

router-outlet takes additional space on the page (Angular 2)

Here is an interesting question that I was kind of ignoring, until now. It seems like Angular2 renders the content inside directive tags. But, for router-outlet, it happens to be like a sibling. My first question is: why? Just out of interest. I…
Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76
14
votes
2 answers

icmp request received, but doesn't reply

I set up 3 CentOS servers, configured server2 as router between 192.168.1.0/24 and 30.0.0.0/24, but ping can't get through. I tried ping 192.168.1.62 from server1, according to tcpdump on server3, ICMP request is received, but it doesn't generate…
Robby
  • 159
  • 1
  • 1
  • 5
14
votes
2 answers

When is a secondary DNS server used?

On our router we have the primary DNS set to a local IP, which is running Windows Server 2008 and the built in DNS server. We use this to resolve domains to local servers, if the domain is not founds locally we have forwarders set up to query…
Darthtong
  • 1,017
  • 4
  • 18
  • 30
13
votes
1 answer

React Router v6 shared layouts

After reading Route layouts I wanted to wrap some elements of my routes with a layout, but leave others without a layout. Here is the example: App.jsx import React from 'react'; import { Routes, BrowserRouter, Route } from…
Icaruk
  • 713
  • 2
  • 8
  • 20
13
votes
1 answer

Rails + SSL: Per controller or application-wide?

I could use some wisdom from any developers who have worked with Rails and SSL. I have a fairly simple app and I'm in the process of implementing payment processing. Obviously payment processing calls for SSL, so I'm setting that up now. My…
Andrew
  • 42,517
  • 51
  • 181
  • 281
13
votes
1 answer

VueJS 2 + ASP.NET MVC 5

I'm very new with VueJS. I have to build a single page application inside a ASP.NET MVC5. I follow this tutorial and works very well -> TUTORIAL But when i create a .vue page to test VueJS2 Routes, the browser does not understand "Import", i read…
Johnson
  • 1,396
  • 6
  • 17
  • 36
13
votes
2 answers

Exchange Data between multi step forms in Angular2: What is the proven way?

I can imagine following approaches to exchange Data between multi step forms: 1) Create a component for each form step and exchange data between components over @input, @output (e.g. you cannot change from step5 to 2) 2) Use the new property data…
user2227400
13
votes
3 answers

Meteor app - Backbone router not getting called

In my Meteor app Backbone routers are only working when the user is logged in (via the accounts-base package). It's strange. This router itself works fine. The showSaying()function isn't being called at all when the user is not logged in. Below is…
squeezemylime
  • 2,102
  • 3
  • 18
  • 26
12
votes
3 answers

What is the state of multicast support in consumer grade routers

I am designing a system which has multiple small embedded systems hosts communicating in a LAN. UDP multicast fits nicely for my purpose. But I am worried about multicast support in commonplace routers. I need to deploy the system to normal…
henning77
  • 3,824
  • 2
  • 26
  • 32