servers , free domains with ESP Lets Say That I Have a  routine like:

 

I have written PHP codes for the free domain that will:


Wait for request like url/control?ToDo="someMethod",parm=Something (posting some password for security)
and will change the database values for ToDo and parms as the request sayed
Wait for request like url/veiw (posting some password for security) and will send the values of sensors that is stored in the database
Wait for request like url/esp?Doin="someMethod",sens1=Something,sens2= ..... and will change the database values for doin and sensors as the request said 
Wait for request like url/check and will send the values of ToDo and parms that is stored in the database


The problem in the code of ESP or node that they need IP to connect 
the IP that I know is free domain provider's not for my link 

I guess I'm missing some knowledge in servers (in english too but it's off the topic XD)  and IP things 

Any one can help with a well documented method or API?

Edit:

There Were 2 main problems -:

1- I Need to know more about HTTP requests , How they look like and what should be in Headers

2- After I have build a good ones and Tried the problem was in my connection with free domain server I've checked to find out that the server is down so I moved To a reliable Server And , It worked .

I guess that's it for now ,
Thanks too you All
You do not need the IP address of the server. You connect with the name of the server and DNS will resolve it to IP address. See the WiFiClient example of the ESP8266WiFi library