Ok, here's the updates:
I have studied a bit of php, downloaded xampp to emulate a server where to run php, installed an editor as well. I ve also rented a OVH server (the cheapest, 2€ and something per month), but I am not ready to put the php file there yet because I still need to test it in local (also setting up things on the server it's a bit complex for who is new to vps renting so I will test this later).
When I try to use the http request used on the dbpro example, edited like this:
port=80 : access=0x00000000 : rem HTTP
rem port=443 : access=0x00800000 : rem HTTPS
rem Connect to HTTP server
http connect "127.0.0.1",port
rem Make a data request
action$="MessageToSend" : return$=HTTP REQUEST DATA("POST", "localhost\server.php",action$,access)
rem Handle return strin
if return$<>""
`
rem Parse string to screen
print "Received : "+return$
`
else
`
rem No string returned
print "no data returned"
`
endif
`
rem Close connection
http disconnect
rem User wait
wait key
end
it returns me an error saying: "Your Browser (or proxy) sent a request that this server could not understand...etc etc)
On the php file I have opened a socket_listen programmed so that when the server gets a message starting with "xxxx" will return a string that says for example "hosting accepted" (which would handle the hosting players storing, adding the IP into an array).
(in this example I have wrote "MessageToSend" just as example)
I' ve also tested a small php file with just an echo command to test if the server emulator (or whatever it is, xampp), works, and it works, so that is not the problem.
What is causing this problem? I have tried using port 80, 443, and another number above 5000, no changes.
Edit:
Even trying with Multisync, the connection is not estabilished, testing with "If NET CONNECTED()=1"