Page 1 of 1

No purebasic but html question(no idea what forum to choose)

Posted: Thu Aug 16, 2012 3:52 pm
by J@ckWhiteIII
Hey,
no idea whether this belongs here or not, but. Is it possible to connect with HTML to a server created with purebasic? If yes, how? i hope somebody can help here. Thanks. if you have questions, just ask

Re: No purebasic but html question(no idea what forum to cho

Posted: Fri Aug 17, 2012 3:44 am
by citystate
do you mean connecting with an internet browser to a PB server? if so, have a look at Atomic webserver - it is included in the PB examples.
otherwise, it's just a matter of setting your PB server to listen on a specific network port (80 for standard HTTP, but you can choose pretty much any one you like)

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 3:36 pm
by J@ckWhiteIII
I looked at the atomic web server, but i don't understand what it does. If i'm not mistaken, it waits until somebody connects on the server and then does the stuff at the gosub.
Now my question is: What do i have to do in the html file to connect to the server?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 3:54 pm
by rsts
J@ckWhiteIII wrote: Now my question is: What do i have to do in the html file to connect to the server?
Do you mean - enter the ip address and port on which the server is running/serving?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 4:01 pm
by J@ckWhiteIII
Exactly, exactly that's what I don't know how to do

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 8:22 pm
by rsts
That's normally a function of the browser. You would merely enter the ip address/port in the browser. The html file would be "served" from the server TO an IP address.

Are you using a PB web gadget?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 8:28 pm
by J@ckWhiteIII
Aaaaaaaah now I understand it better, I think :)

No, not a web gadget. why?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sat Aug 18, 2012 8:40 pm
by rsts
J@ckWhiteIII wrote:
No, not a web gadget. why?
A webgadget can request a specific ip/port serve to it.
cheers

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 2:35 pm
by J@ckWhiteIII
Just another quick question: The standart port in Atomic Web Server is 80. But if I try to compile, it says the port is in use? I thought 80 was made for HTTP, so I wonder...why is the port in use?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 4:06 pm
by Shield
Let me guess...using Skype?

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 4:09 pm
by J@ckWhiteIII
Yep, skype

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 4:18 pm
by J@ckWhiteIII
Does the whole thing only work for me (on my computer)? Testing with a buddy didn't work, so I'm wondering how to get the whole thing on the web (if that's not possible, my question was stupid...).

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 4:42 pm
by Shield
For some reason Skype is using port 80 for itself (at least it was),
but you can change that.

And in order to get this to work from your computer you need to set up your router
properly, forwarding traffic on port 80 to your computer and also you need to make sure
the firewall and anti-virus applications aren't causing problems.

Re: No purebasic but html question(no idea what forum to cho

Posted: Sun Aug 26, 2012 4:45 pm
by J@ckWhiteIII
Ima work on it.
Thanks for your help.