-
Notifications
You must be signed in to change notification settings - Fork 67
Connecting to cfdev from LAN how to map ip/host? #67
Comments
Made some progress on this. Current Hack solution is ( Is there a better one?) On machine hosting cfdev/pcfdev (Server) (mine 192.168.1.100) 1. Open command prompt in administrative mode. mode and enter the following: 2. now type netsh (press enter) then type the following (substitute your own local machine ip, 127.0.0.1 might work as well)
3. Verify this is done by typing **On the client machine you wish to connect to cfdev/pcf dev ** 1. Find your hosts file and open it with a text editor in administrative mode. 2. and add the following entries where left column is the LAN IP address of pcfdev/cfdev machine you wish to connect to
Note: Some things to note here. The IP on our cfdev/pcfdev server box is static and hard coded in our local dns server (192.168.1.100) so above assumes this will never change. Also, assumes any additional subhosts xxx.dev.cfdev.sh would also need to be hard coded into each client's etc/hosts file (wild cards not allowed) as described in the client config above. You can probably install Acrylic DNS Proxy Server to allow for wild cards in one entry like |
Connecting to pcfdev from another machine is not functionality that we support. Primarily, this is because of security concerns. We'd much rather that you look into small-footprint cf (https://docs.pivotal.io/pivotalcf/2-4/customizing/small-footprint.html) for this use-case. |
@airduster would you mind sharing a bit about your use case? We are looking to better understand how people are using CF / PCF Dev, and what they are looking for. Your answers to this 4 question survey would be very helpful to us: https://goo.gl/forms/3OHzU2S5907hiu5r1 |
Using Win10 Pro machine would like to connect to pcfdev from another machine on local network with standard config of:
192.168.1.xxx ip address ranges 1-254
192.168.1.1 gateway.
By default pcfdev uses 10.144.0.34 on local machine hosting it (192.168.1.100) and maps to
https://apps.dev.cfdev.sh host.
on the lan we can ping 10.144.0.34 but cannot connect to https://apps.dev.cfdev.sh other than from the localhost hosting pcfdev.
Is there a way to expose https://apps.dev.cfdev.sh uri so that all local area machines can access it?
Specifically, we just want to deploy directly from multiple eclipse IDE's to a single shared pcfdev
Found this on stackoverflow: https://stackoverflow.com/questions/41639600/access-pcf-dev-from-external-machine-on-same-network-as-host
but it appears to be referring to the previous and now deprecated version of pcfdev. Tried their solution and did not work with current version
The text was updated successfully, but these errors were encountered: