Two domains, Two machines, One Public IP. How to route? Is it Possible?
My subject pretty much sums it up.
I live with a roommate. He has one computer and a domain. I have one computer and a different domain. We have one IP which our access point router assigns IPs. Both of our web servers want to be online. How do we route incoming traffic from MY domain to MY computer, and route incoming traffic from HIS domain to HIS computer?
Probably not the best way... but just run HTTPD on port 81 on the second computer, instead of port 80 (default). Then you can use port forwarding in your router to point the two ports to their respective computers.
Better, but similar way: Get an account at someplace like zoneedit.com and set it up with your domain. Then have it forward your domain to your ip with port 81, and your friends domain to your ip at port 80. Or the other way around. I don't know if zoneedit actually allows using different ports but I assume they would. If not there are a lot of different dns providers around.