Hello,
I have a workstation with the IP 192.168.3.100 and a Proxmox Server with the IP 192.168.3.10.
Login over the IP works just fine, but not over the API via CURL from the PHP API Wrapper doesn't work.
Following test code works on server which are accessible over the internet:
But this code doesn't work on my internal server.
/etc/networking/interfaces
/etc/hosts
IDK what to do does everyone a idea?
I have a workstation with the IP 192.168.3.100 and a Proxmox Server with the IP 192.168.3.10.
Login over the IP works just fine, but not over the API via CURL from the PHP API Wrapper doesn't work.
Following test code works on server which are accessible over the internet:
PHP:
$pve2 = new PVE2_API($GLOBALS["server"]["ip"], $_REQUEST["user"], $GLOBALS["server"]["realm"], $_REQUEST["passwort"]);
if ($pve2->login()) {
$arr["type"]="success";
$arr["data"]=$pve2->get("/access/users/".$_REQUEST["user"]);
} else {
$arr["type"]="error";
}
But this code doesn't work on my internal server.
/etc/networking/interfaces
Code:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 192.168.3.10
netmask 255.255.255.0
gateway 192.168.3.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
Code:
127.0.0.1 localhost.localdomain localhost
192.168.3.10 robin.local robin pvelocalhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
IDK what to do does everyone a idea?