You can set up your custom network with
docker network create --driver=bridge --subnet=172.20.0.0/24 network-name
And then run the container in this network with --net my_custom_network
Then you can test connection
docker exec -t -i admhttp ping 192.168.1.6