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
1
vote
1 answer

app.use not working express 4

I have a really simple backend with a couple routes. I want to keep the route logic outside the server.js file but for some reason when I do a POST request to the route it gives me a 404. server.js // Call packages var express =…
1
vote
0 answers

How to access info on a flashdrive connected to a router?

So I want to write a java program for my family to share anonymous information when playing a board game. The only specifics you need to know are basically I would like to send out a string from a program, wait for a button press, then output the…
Joe Finn
  • 71
  • 1
  • 7
1
vote
1 answer

Express/Mongoose Router: 'Cast to ObjectId failed for value "undefined" at path "_id"'

I have a simple API in Express that allows the user to 'post' and 'delete' a post title into a MongoDB database. For some reason, when I add a post title, then subsequently 'delete' it, I get the "Cast to ObjectId failed for value "undefined" at…
bounty
  • 409
  • 1
  • 4
  • 8
1
vote
0 answers

Angular2 routing to a terminal route below a route param

I have an interesting routing challenge with Angular2 that I would like to solicit ideas about. I have a route that in the URL I need to look like this: .../item/editor/[trigger]/options/list Where the bracketed [trigger] refers to a RouteParam. …
lje
  • 413
  • 5
  • 16
1
vote
0 answers

Using Router Annotations with other routes in Phalcon

Is it possible to use annotations on top of regular routes in Phalcon. For example, I have this: $router->add('/', [ 'module' => 'home', 'controller' => 'index', 'action' => 'index' …
Justin
  • 623
  • 1
  • 10
  • 24
1
vote
1 answer

Setting up the dns of amazon sw3 bucket, creating subdomain url router amazon s3

I have a repository bucket on amazon. In this repository I have a page, with only css, js and html, I start the application with the index.html. The application url is available, and look like this : example.s3-aws-region.amazonaws.com. I want to…
user5520410
1
vote
1 answer

why node.js bodyParser always returns 'undefined'?

In 'app.js' I have var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); 'index.js' full codes var express = require('express'); var router = express.Router(); var mysql =…
FLYnn
  • 117
  • 9
1
vote
1 answer

backbone router several root, how to load this properly?

I'm missing something here. My problem is very simple I think. mysite.com/app and mysite.com/transaction both load a different html page but they load the same router. For each case I need my router to be written in order…
François Richard
  • 6,817
  • 10
  • 43
  • 78
1
vote
0 answers

angular-ui-router -> template inheritance

I have a tricky scenario here. My index.html page contains two ui-view sections. One for navigation-bar and the other one for page-body. When index page is initialized I load menu-guest.html into the navigation-bar view and home.html into the…
zappee
  • 20,148
  • 14
  • 73
  • 129
1
vote
1 answer

Java Socket Handshake OK, But No Other Data. Router or Java (or myself) To Blame?

I'm trying to set up a server/client connection in Java. I've connected my PC directly to the DSL, and it works fine through Windows 10 firewall. I reconnect to my TP-Link Archer C9 router with Virtual Server set for port 4023 and 4024. I get a…
1
vote
0 answers

how to install node.js on the router Asus RT-N18U (with ARMv7l processor)

I would like to install node.js on the ASUS RT-N18U with Tomato firmware version 1.28 by Shibby (http://tomato.groov.pl/download/K26ARM/132/tomato-RT-N18U-ARM--132-AIO-64K.zip) HW configuration root@unknown:/# cat /proc/cpuinfo Processor :…
user2106769
  • 445
  • 5
  • 15
1
vote
0 answers

Phalcon router to match variable depth folder structure

I have the need to configure a Router in Phalcon in order for it to match URI like the…
user3418803
  • 189
  • 1
  • 7
1
vote
2 answers

make route with iron router meteor

I'm new to meteor and iron router. Iron router example are not up to date and not working on github. I just want to make a simple route. Here is my /client/index.html {{>…
BoumTAC
  • 3,531
  • 6
  • 32
  • 44
1
vote
2 answers

How to delete Iron Router history

I am using Iron router for meteor and want to create android mobile apps. I create login page that look like WhatsApp application. After user successfully login, i want to make sure that when user click back button,user will never go back to that…
Nizul Zaim
  • 13
  • 3
1
vote
1 answer

Django reverse routes - two optional parameters

I have a question about Django and it's routing system. I believe that it can be powerfull, but right now I am struggling with one issue I don't experience when working in other frameworks and I can't seem to get a grip on it. Worth to mention that…
j0hny
  • 431
  • 1
  • 5
  • 16