I just wouldn't even try and go down any workaround for this, domains are just too cheap not to buy.
smn, is it best to use *.localhost or 127.0.0.1/*? I noticed you suggested *.local, but I am unfamiliar with how that would work.
@bcmike, I ran across this before and thought I'd mention it when I came back to review this. The problem with buying a domain name is not the cost for the name, but rather obtaining another IP address from your ISP just to serve that domain. That can be very cost prohibitive. In my case, it would cost another fifty dollars per month, as shockingly bizarre as that sounds. (Further, any desire for anonymous routing will probably go out the window as well, although I haven't studied that issue as of yet.) It can get even more complex for those sharing an Internet connection.
@KitchM If you think you need another IP to serve a domain name then I have to ask if you are even ready to enter this space as you clearly know next to zero about networking. Every single thing for you is going to be difficult, troubleshooting a non-starter.
If A and B are sharing an internet connection with a single public IP, then they are sharing the connection. End of story. There is no difference between this and just having multiple users in a household or typical office network.Here's something for you folks to think about. Suppose customer A gets internet service from ISP. ISP assigns IP address 1 to Customer A’s gateway device. Friend B shares service from gateway device.
Registrar doesn’t care who/what/why for a given IP address. Multiple domains, multiple hosts can point to a single IP address.Friend B gets domain name. Registrar requires IP address. Which address is used? Address 1? Who controls it? Who has access to it? Who's name is on the records? Any legal issues? How do you get packets to go thru the gateway without allowing A to see it?
Friend A & B should be hosting their servers on a VPS or server on a DIA connection or colo. Not sharing a consumer connection and attempting to host servers on it. A domain is $10-20/year and a VPS with public IP is around $20/mo. I wouldn’t dream of hosting a production VoIP setup where I had to worry about “Friend B”@DigitalDaz, thanks for making me laugh. If you knew all the options and could think outside the box, you would probably had not said anything.
@smn, yes, quite so, but not applicable in my case, nor in real business. It is something of a cheap way to do things. Shortcuts are usually a very bad idea.
Here's something for you folks to think about. Suppose customer A gets internet service from ISP. ISP assigns IP address 1 to Customer A’s gateway device. Friend B shares service from gateway device.
Friend B gets domain name. Registrar requires IP address. Which address is used? Address 1? Who controls it? Who has access to it? Who's name is on the records? Any legal issues? How do you get packets to go thru the gateway without allowing A to see it?
I’ve only operated five domains and web sites at a time on my servers, but I feel confident that the concept can be successfully multiplied many times over. What I have found is that advice is often given from a narrow viewpoint and the questioner must wade thru the morass of confusion and dead-ends to get to the good and applicable stuff. We dare not assume.
Those who actually know something are the ones who can do it with privacy and anonymity properly deployed. Can you?
Always interested in a good debate.