I'm running a Rails site on computer A. I start the site with rails server
and browse to it at http://localhost:3000
. Computer B is on the same WIFI network. From computer B I can visit my site at http://192.x.y.z:3000
where the IPv4 address of computer A is obtained from ifconfig
in the OS X Terminal.
How can I browse to my site (running on computer A) from computer B without using the wireless router? I'll still have WIFI enabled on both computers. However I don't want the computers to communicate through the additional WIFI router.
My current understanding is the WIFI router assigns IP addresses to the various devices on the network. In trying to answer my question I wondered who/what will assign IP addresses to the computers when the wireless router is removed.
My goal is to learn more about networking. I'm fine doing some low-level sockets programming if that's what it takes.