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
2 answers

Find LAN router IP address with Scapy?

I am attempting to find my router's IP address with Scapy. I am running a distro of Linux and fully understand that I could use system calls or subprocess to get to the routing tables and find the gateway. However, I am trying to do this without…
ma77c
  • 1,052
  • 14
  • 31
1
vote
1 answer

Angular2 Router V3 and Menu selection

I would like my menu to show the current route by applying an 'active' class on the menuItem (Like in Ng1) base on the current route. @Component({ moduleId: module.id, selector: 'main-menu', directives: [ ROUTER_DIRECTIVES, ], …
Brett
  • 1,717
  • 1
  • 26
  • 38
1
vote
1 answer

Send Multiple commands using Netmiko

I am struggling to send multiple commands to multiple hosts , i am using commands input from a file: commands.txt sh ip int bri sh run sh ver hosts.txt router 1 router 2 router 3 I then run following from future import print_function from netmiko…
Saadi381
  • 55
  • 1
  • 2
  • 9
1
vote
1 answer

Laravel 5.1 Php artisan commands not working after composer update

here is my composer.json require snippet. "require": { "php": ">=5.5.9", "laravel/framework": "5.1.35", "aws/aws-sdk-php-laravel": "~3.0", "lucadegasperi/oauth2-server-laravel": "5.1.*", "bosnadev/repositories": " 0.*", …
1
vote
0 answers

Java game socket network router issue

Good day, I have a java game that I want to play with a friend over network, I have implemented Sockets and tested the game on my pc using localhost as address, but was unable to connect to the external ip of my pal's pc, presumably due to us both…
Alex Kamen
  • 61
  • 7
1
vote
1 answer

Laravel initial router, how to pass the controller?

Mrs. good morning I'd like to config my Laravel initial route, to works on the /, I don't know how I can to do to use the controller. I use at this moment redirecting my initial route to /start route, but I'd like to use on / only. See my router…
Paulo Teixeira
  • 448
  • 5
  • 11
1
vote
1 answer

aurelia multiple viewPorts on the same component

Is it possible to use viewPorts with the same component, without it being instantiated twice. E.g. config.map([ { route: 'route1', name: 'route1', viewPorts: { default: {moduleId:…
Juri Krainjukov
  • 732
  • 8
  • 27
1
vote
0 answers

Angular2 Using Router instance from tests

I'm trying to develop some Jasmine tests for an Angular2 component. This component receives two parameters in the constructor, a service and a router. import {Component , OnInit} from '@angular/core'; import {Router} from…
rtrujillor
  • 1,162
  • 1
  • 12
  • 23
1
vote
0 answers

C++/C: Setting up local HTTPS proxy server for rerouting

I've read quite a few SO questions such as this one: Local HTTPS proxy possible? Setup: I have one machine, "A", that can be accessed externally, and server machines, "B", that share an internal network with "A" and aren't exposed to the…
dant
  • 687
  • 1
  • 6
  • 15
1
vote
2 answers

Setting page title after activation in Aurelia

I am trying to set the title, however in this code below it works in one place and doesnt in other place. I want to get the product name and set the title. Is there any other way to do it? activate(params: any, route, navigationInstruction) { …
genericuser
  • 1,430
  • 4
  • 22
  • 40
1
vote
1 answer

How to do routerCanDeactivate in ngrx/router?

This is how I use routerCanDeactivate in deprecated router: import { CanDeactivate, ComponentInstruction } from '@angular/router-deprecated'; export class CallComponent implements CanDeactivate { routerCanDeactivate(next: ComponentInstruction,…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
1
vote
1 answer

How to apply linkActive to multiple links?

I am using ngrx/router. I have 4 pages. And two of them /admin/dashboard and /admin/management need admin access. /home /products /admin/dashboard /admin/management I can click User and Admin to switch between user or admin views.
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
1
vote
2 answers

Angular & UI Router - template is loading but nothing shows up on the document

I'm using Angular 1 with UI Router(https://github.com/angular-ui/ui-router). Here's how my main app.js looks like: var myApp= angular.module('myApp', [ 'ui.router' ]); myApp.config(function($stateProvider, $urlRouterProvider) { …
user3800799
  • 534
  • 1
  • 5
  • 18
1
vote
1 answer

How can I integrate react-native-router-flux with Relay

Should I wrapped all my routes in a RootContainer or Relay, or should I wrap only the Scenes that uses Relay?
Sibelius Seraphini
  • 5,303
  • 9
  • 34
  • 55
1
vote
2 answers

Angular router, calling controller many times

This code is functional, but it could work better. My question: How i can insert navDetalle or other views in many states without call controller again. (function() { 'use strict'; angular .module('miApp') …