I Have one static Ip such as 1233.22.33.44 and i have two Servers that have IP: Server 1: 192.168.1.1 Server 2: 192.168.1.2  Server 1 running Website on Port default 80, I can access Web on Server 1 through  , and I want set up Web Server Running on Server 2, how can i do that?  Thanks for Reply!  PS: Sorry for my English.
124207
The situation may be resolved by my intention to purchase an IPv6 prefix for the VPS, but in the mean time I'd quite like to know if this is possible.  Basically what I want to achieve is a simple interface to Node.JS apps running on the VPS via domain names, so that for instance I could have "steak.chaos-kitten.com" pointing to one node.js app and "lister.chaos-kitten.com" pointing to another, and perhaps "chaos-kitten.com" itself pointing to a third.  I know you can't use DNS to point to a specific port, but is there some software solution I can employ that will redirect incoming GET requests to the appropriate node.js app based on the domain name?
92735
If I do not have access to the router / DHCP server to create a static reservation (i.e. asking the router / DHCP server to set aside a specific IP address when a certain MAC address requests it), how can I set my Windows 7 workstation to have a static IPv4 address?
56009
I have IIS7 on my computer, and I can access it through other computers in my house on the same network through my computer's IP address - 192.168.1.10x  Instead of typing in http : //192.168.1.10x/ I want to be able to go to http : //somename/  I know you can change the hosts file to add it but I'd have to do that on each computer and I'd still have to type in the IP to access it from my iPod/Wii... etc.
105363
I have recently installed  the centos  server. I have configured apache and all the mysql packages.  I have also one live IP. When I run the webserver with the live IP on the centos webserver itself all looks good. But when I try to access remotely via another IP, it says "unable to connect".  I have also set up iptables. yet i am not able to access the server - please, can any one help? This is my iptable file:   # Generated by iptables-save v1.4.7 on Sat Mar 16 21:12:18 2013 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [20928:2320365] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT # Completed on Sat Mar 16 21:12:18 201   And here's the output from netstat:  Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name    tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      2109/mysqld          tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1575/rpcbind         tcp        0      0 0.0.0.0:54354               0.0.0.0:*                   LISTEN      1770/rpc.statd       tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1971/vsftpd          tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1828/cupsd           tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2205/master          tcp        0      0 :::51272                    :::*                        LISTEN      1770/rpc.statd       tcp        0      0 :::111                      :::*                        LISTEN      1575/rpcbind         tcp        0      0 :::80                       :::*                        LISTEN      3026/httpd           tcp        0      0 ::1:631                     :::*                        LISTEN      1828/cupsd           udp        0      0 0.0.0.0:43728               0.0.0.0:*                               1770/rpc.statd       udp        0      0 0.0.0.0:5353                0.0.0.0:*                               1751/avahi-daemon    udp        0      0 0.0.0.0:111                 0.0.0.0:*                               1575/rpcbind         udp        0      0 0.0.0.0:631                 0.0.0.0:*                               1828/cupsd           udp        0      0 0.0.0.0:902                 0.0.0.0:*                               1575/rpcbind         udp        0      0 0.0.0.0:674                 0.0.0.0:*                               1770/rpc.statd       udp        0      0 0.0.0.0:39847               0.0.0.0:*                               1751/avahi-daemon    udp        0      0 :::33127                    :::*                                    1770/rpc.statd       udp        0      0 :::111                      :::*                                    1575/rpcbind         udp        0      0 :::902                      :::*                                    1575/rpcbind       I'm also having port 80 listen.
69632
My problem is really simple yet it sounds complex, but I have zero to none experience with this.  I have set up a box using gentoo which has its own semi-static WAN-IP and acts as router for my LAN. I have access to a router elsewhere on the web, which has a dynamic IP and is registered to dyndns. My plan is to redirect specific traffic from my gentoo-box to the router to make use of the tunnel and the dynamic IP.  My idea was to install a proxy on my gentoo-box which uses a VPN connection to the router as default. Every computer on the LAN and specific computers on the WAN (that have access right to the proxy) should be allowed to use this proxy, but no traffic should be forced to go through the router. Which rules out the idea of just using iptables.  Example: I want to redirect Firefox traffic through the VPN but not Opera traffic. I setup Firefox to use the local proxy, it gets the dynamic IP of the distant router, Opera still browses with my semistatic-IP.  Is this possible? Which software to use? Any further ideas?  btw: the router supports PPTP, IPSec and L2TP  Edit: If you have better ideas for the title please edit or suggest, I have no idea how to call my problem :(
46636
There's two servers with the same network IP, and the only difference between them is the last two numbers like: 37.211.15.247 and 37.211.166.178. The Hosting Provider claims that the subnet mask for both networks is 255.254.0.0  When I try the command Tracert (Traceroute) to test the ping and to see what hops does it take to reach the destination server, I get different ping times and different forward path results which is strange because they are all located in the same company host.  Is there something wrong? Shouldn’t it take the same path too?  I have added the the full IP addresses to both servers as requested by some commenters. Well the two servers aren’t “International” anyways, so as far as I know, the only thing that comes to mind is the possibility that the two are configured on different subnetworks just like what . Though it’s suspicious.  UPDATE: After doing so much research, I found out the Subnet of these two hosts. They are on a /15 (255.254.0.0) subnet mask. Unfortunately, this is what that hosting provider claimed to me which is not true, and the true Subnet they apparently use is a /17 (255.255.128.0) Subnet mask. It turns out that they were definitely on different Subnets. That's why I got different traceroutes when I tested these two IPs 37.211.15.247 and 37.211.166.178  because they are clearly on different Subnets. Thank you everyone for these good answers, especially  his answer helped me a lot.
25546
I want to be able to route a portion of my traffic through another machine over SSH. For example, is it possible to browse the web through the ssh tunnel and also browse the web through your LAN connection without much effort? (i.e. I want a seamless transition from using tunnel to using LAN)   Thus it is not a simple how do I tunnel ALL web traffic through ssh tunnel, but moreso how can I setup a tunnel that I can use at my discretion but not impeded my normal traffic flow. (Kind of on an as-needed basis)    I would like the filtered traffic to be encrypted when leaving the LAN and it could be ftp, ssh, web, mail whatever traffic.    Some questions I think I need to answer/address:   Does this require multiple nics?  Does this require setting up a proxy?  Can I even do this the way I want it to function?    Are there other options aside from a tunnel to achieve the result of having some traffic (user decides) encrypted through another machine (outside the LAN) and have other traffic use the normal flow through the LAN and out into the internet world?   Edit: If some of the answers depend on specific traffic types I can be more specific and say that web traffic is a primary focus of this. However, other traffic such as IM/Email traffic would be desirable.
73320
I'm very confused.  I basically understand how DNS works. Here's an example that helps illustrate what I'm having trouble understanding.  Right now, I run a small web-server. I use my provider's DNS manager, so I don't have a DNS server hosted on the machine.  Let's say for a second, that I don't use my host's DNS, and I decide to set up a DNS server on my server. Hypothetical scenario: my server (entire) server goes down - DNS included. Why do I need backup DNS? If the server is down, who cares if the DNS server is down too, considering that even if I had DNS up (it wasn't on the crashed server), it wouldn't be able to forward requests anyway since the server would be down?  Is the point of having secondary DNS, to be able to change the IP addresses that your DNS server points to, so if your webserver was down, you could redirect traffic to a backup? How would you switch to the secondary provider, in the event that your main DNS provider becomes unavailable? Is a backup DNS system basically up all the time? How is it configured? Is it just an exact clone of the DNS server you would have on your server? Do they run simultaneously?  Hopefully someone can see what I'm hung up on, and provide some guidance.
82477
I have two internet connections from two different ISPs and I need to balance the traffic originating to and from my network between the two ISPs. I am using Debian GNU/Linux.  My set-up is like this -  eth0 (192.168.0.0/24) -- Local network  eth1 (192.168.1.0/24) -- ISP #1  eth2 (192.168.2.0/24) -- ISP #2  My local network is connected to this server via eth0 and the box is the DHCP server cum Gateway for all the machines in the LAN.  The server needs to do load-balancing between the two ISPs and also needs to do NAT-ing.  I have followed the routing instructions on  but I still need instructions to do the NAT-ing properly.  Any help will be appreciated.   PS - I know about pFsense but I need to use Linux.
75880
HTTP servers usually operate at port 80. Yet NAT routers as most are these days assign port to outgoing requests so they would know when request is returned that which computer connected to it, it's suppose to be. They do it cause they can only use one public IP even though all computers behind router are given public IP address they are local IP address. Meaning they only work for everyone behind that router.   So how does server handles this. It only works at port 80, and router sends at whatever ports it wishes to do based on what is available and how it is programmed.   My understanding:   Computer A to router. 22.22.22.22.22:80 Router to World: 12.68.191.1.102:1 -ISP given IP address:Port to distinguish between computers connected to it.   Now what  Or maybe there is a difference between port and source port.
81636
I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2).  On my desktop I can access localhost through the normal . Apache is running on port 80 as usual.  Exactly what do I have to do to achieve this? There is documentation on the net but they either don't work or are too fragment and confusing to understand.  I think I have to make changes to my apache's httpd.conf file and the hosts file. Any ideas as to what changes to make?
43083
I have one Linksys WRT54GL router running Tomato firmware. Connected to it via ethernet are two computers with Static IP addresses.  The first computer is using the default RDP port 3389. I set up port-forwarding on TCP to that computer's static IP.   On the second computer I changed the RDP port to 3398 at:  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp   Then I set up port-forwarding on TCP once again to that computer's static IP.  Both computers have Remote Connections enabled from Any version of Remote Desktop Client.  From both the same network and an external network I tested remote connections to both computers: Only the first computer connects, the second won't.   I had previously got this working with the same router, and for awhile I had switched to a new N router (Dlink DIR-655) before recently switching back to the Linksys. Since switching back (with no configuration changes) something is going wrong and I can't quite figure out what it is.  Additional things tried:     Running ipconfig /release /renew on both computers after switching back to the original router (WRT54GL) to obtain the proper local IP. Clearing arp tables of old N router's IP addresses on both computers, which were set statically to 192.168.0., whereas the WRT54GL is 192.168.1..    Update: I'm also connecting using ip+port (192.168.1.145:3398)
102599
I have implemented a simple web server as a solution to a course assignment and I want to connect to this web server over the internet. I've set it up to listen on port 22881 and configured my router accordingly as the screenshot below shows    I'm able to connect to my web server locally using http://localhost:22881 and I can connect to the router's interface when I visit http://my.external.ip, but I can't connect to my web server using http://my.external.ip:22881 (I get a connection timeout). Any idea of what may be the problem?  Thanks in advance!
89480
I need to show somebody a website running on my local machine tomorrow. Normally I'd accomplish this by port forwarding on my local router but thanks to failing hardware and its replacement being awful, my current router doesn't let me do port forwarding.  So stuck with this delay and not wanting to push the whole thing onto a proper server, I had a crazy idea: Can I just forward my port to an external server over SSH?  I've done port tunnelling before but I usually do it the right way around:   I connect to a remote box and ask that port 12345 shows up on my local machine at port 12345. I start something on P12345 on the remote machine I can access it via localhost:12345   What I want to do:   Connect to a remote PC and ask that that its local P12345 fetch things from my local P12345 (over the tunnel) I start something on my local computer on P12345 Other people can access remote:12345 and see my localhost:12345
81238
I have an Ubuntu server behind a NAT router / firewall. I would like to add another server, serving content from both servers over http(s). As I understand it I can have the "main" server request data from another IP depending on which vhost is being called.   However I need to understand how that is done and which kind of setup is needed. Is the data being routed through the "main" server or is the data served directly from server 2? Is there any other sharing needed to happen between servers like access to the files?
99903
if I set x.domain.com and y.domain.com to the same ip address, Does it mean Nginx couldn't tell the differences between x.domain.com and y.domain.com?  Is it impossible to map x.domain.com and y.domain in the server directive in the server context to the different folder?  I also want to learn more about how the computer network work? Anyone could give me some resources?
90086
I want to know how to make my ubuntu server ip public. I'm not asking for a domain, if people would be able to access my website by ip, it would be great! (just for now) Does someone have an idea how to do this?