I have setup AirPrint via CUPS in Ubuntu 12.04.03. This works through my main router, when my iPad and iPod are on this wifi router. That router is the main ADSL into the house. I then have another router, a MikroTik Routerboard, on an Ethernet cable attached to this. I use both of these networks for different iDevices, however the CUPS server is attached to the main router.
I think AirPrint only works on the local router, but I need to use it on both networks.
Is it possible to create some sort of tunnel to direct the AirPrint into the MikroTik router's network?
Thank you.
AirPrint utilizes the Bonjour service to discover local 'Airprint' printers. Because Bonjour can 'only' discover local printers it makes it almost impossible to reach outside your local network to discover nearby printers.
The best advice I can give would be to purchase a second network adapter (Ethernet or Wireless) and connect it directly to your 2nd 'MikroTik' router. This would then allow you to have the AirPrint server accessible in both networks. An under $20 fix to a complex solution.
The easiest solution however would be to use your second router as a bridge to your main network. However I am guessing you're avoiding this scenario for some undisclosed reason.
Related
The first router (Telekom something) which is connected to the cable from outside is the one which the smart tv is connected to. The second router (Asus something) is connected through the first one and hosts a separate wifi network from the first. My pc is connected to this router through a LAN cable. I'm trying to use a screen sharing program called Deskreen which hosts a website from the computer and can be reached by typing in the ip address of the computer into a browser. This only works on the same network that the pc connected to.
I tried searching online but I couldn't find anything about a similar situation. My main question would be if I can somehow reach the other router from the smart tv since the two routers are connected.
Yes, use more specific networks that are part of the block on the first router (if you have at least a /29 block), and enable proxy arp (should be on by default).
so the setup I've got:
Main Router which receives the internet connection and is my primary WIFI network: 192.168.1.0/24
Secondary Router which I've connected via the following method to create a separate LAN: 10.3.3.0/24. Main Router's LAN port --> Secondary Router's WAN port.
I've got this setup fine and can get internet from the Secondary Router's LAN, no problem.
My question is: Is it normal behavior to be able to ping a device connected to the main router from the secondary router?
I would like to isolate devices on each LAN so that devices connected to the separate LAN's can't communicate and wondering if I'm able to achieve this using 2 consumer grade routers?
Cheers!
This is normal behavior because the secondary router knows that IPs in the 192.168.1.0/24 subnet should be forwarded to its WAN port, so it can access hosts connected to that network.
Sadly, you usually can't create 2 segregated subnets with 2 consumer-grade routers, as these only have 2 network interfaces (one for WAN and one for the built-in switch).
I also do not recommend doing this, as double NAT can have unexpected side effects. If you really want to separate devices on your local network, looking into VLANs is a better way. You can use your existing router but will need a compatible switch.
If your routers support vlan management you should use separate vlans for both subnets. Otherwise you cant devide your networks.
I have a router (belkin) with many devices connected.
I ran a application on one my devices and the application assigned a port number for remote connection.
Now for me access this device i tried doing something like:
wanipaddress:port
But unable to connect. I am not sure if the router can be used to accomplish the above.
Any suggestions on how to achieve the above?
P.S my router assigned unique LAN IP to all the devices.
I achieved the following using Port Forwarding mechanism. A port forward is a way of making a computer on your home or business network accessible to computers on the internet, even though they are behind a router.
I found the following tutorial to be useful:
I come from DD-WRT, but I'm really liking OpenWRT and will probably make the switch on all my routers. Anyway, I'm actually struggling to get a simple Client WiFi setup going. Here's what I'm going for:
Internet --- Foreign AP ---(wifi)--- My OpenWRT Router ---(ethernet switch)------ My OpenWRT LAN
I am able to connect to the Internet via the Foreign AP with my DD-WRT router (identical model and revision). I guess what's confusing me the most about OpenWRT is the eth0 interface, or perhaps a lack of understanding what DD-WRT does with eth0 in Client WiFi mode. As with a Linux desktop/laptop, I assume eth0 is the WAN port on a router, and in Client WiFi mode, is disabled and the routing table is rewritted so eth0 is replaced with wlan0/ath0. Is this correct?
Anyway, my steps on OpenWRT (with luci) are as follows: connect computer to router via ethernet, go to WiFi page and click Scan on wlan0 interface, choose the foreign AP, assign to default WAN firewall group, verify connection/IP Address with foreign AP. At this point I am able to ping 8.8.8.8, but I cannot reach webpages or connect with, say, Spotify.
I took a look at the answer here: Luci (openwrt) wifi bridge client - how to configure? which isn't exactly what I want (this one is for a bridged repeater/client), but it looks like I am doing everything correctly for just the client functionality. I shouldn't have to bridge any interfaces, right?
So all one should have to do is:
Go to interfaces and click Scan on one of the WiFi radios (2.4 or 5GHz)
Select the host WiFi network
And it just works. Why is that not written down anywhere on the Internet? Now it is, I suppose...
I am not able to get this to work with my 5GHz radio (which works for Client mode on DD-WRT), so it may be a kernel (or some other) issue with this particular build of OpenWRT.
My goal is to have two laptops in a network. One is acting as a server, serving webpages to the other. The catch here is that neither is connected to the outside internet.
What I have done so far is setup WAMP on the server laptop, and it successfully serves web pages on localhost. Now I want to access these pages on the other laptop.
To do this, I had the server create an ad-hoc network and connected the other laptop to it, but I'm stuck - and I'm worried I'm not on the right track. I followed this tutorial but in the end I figured out that just explained how to spoof a text URL as an IP address, and not really what I was looking for.
So I guess I have two questions:
Is my method the best way to do this (with ad-hoc networks)? Is there some way to connect a laptop to a wireless router and have the laptop act as a server to another laptop?
If my WAMP and ad-hoc network should work, how do I connect other laptops to my server through the ad-hoc network?
Thanks!
I would suggest the first option: get a wifi router. Then you can assign static IP adresses from the routers private network or use DHCP server on the router. Hopefully you will have an option to reserve IP adresses on DHCP server so you dont have to check every time what IP adress the laptop acting as a server got. You use this address to access your web server. Also, you can use this router later as a gateway to the internet if you want.
In ad hoc mode you will probably get an address from 169.254.0.0/16 link-local scope, and you can check it by running ipconfig as #Robadob already suggested.
On your hosting laptop open cmd and call ipconfig look for the internal IP address on the network interface your hosting the ad-hoc network.
Enter that IP address into the browser on your client laptops web browser instead of localhost.
If that doesn't work, try other ip addresses listed by ipconfig (incase you used the wrong) and then check the properties of your ad-hoc network, windows firewall and any other firewall software to disable anything that might be blocking it.
An ad-hoc network is suitable option for what your doing, most people would probably use a switch or router though, however that requires hardware you probably don't have.