So I want to make my own server for sv_downloadurl because I thought it would be a good learning experiance and I needed to give c++ some practice so I took some socket tutorials and its pretty easy. I have a console program that can accept connections from firefox and send it the requested file which is awesome.
The problem is that I can't get hl2 to request files from it.
I don't know if it's my sv_downloadurl which it probobly is, and if it is i'm not sure what is wrong. Everyone that connects to my server gets the files from the server instead of my custom server.
sv_downloadurl http://<myip>:8888
Maybe it only takes domain names?
I don't know. If anyone has any ideas I'm all ears.
(Closed)
You guys see "hello"?
[editline]07:13PM[/editline]
It seems that srcds redirects the client to the http server, but that still doesn't explain why the client doesn't connect.
I can see in my server window when someone connects and the data they send to it, and it's completely blank when people connect to my hl2 server.
-snip-
[QUOTE=sam6420;21515316]Your web host might not allow connections from hl2. o.O[/QUOTE]
Just use Wireshark and change the useragent of your Firefox, then perform the same request HL2 would.
But that'd be pretty freaking unlucky.
Alright I'll give that a go.
[editline]08:29PM[/editline]
Someone with a mac connected to me. Curses!
[editline]10:14PM[/editline]
Ok I detect http requests whenever I connect to a server with sv_downloadurl properly set up, but apparently hl2 doesn't like the ip addresses I'm setting in mine. I don't know what other format to put it.
I've already tried these.
http://<myip>:<port>
<myip>:<port>
I guess I'll try making my app's port 80 then try tomorrow without the port.
Since http is automatically through port 80 just use this: (assuming your app is using port 80)
sv_downloadurl "http://<ip>"
EX:
sv_downloadurl "http://127.0.0.1"
When I host dedicated servers on my own computer, I use WampServer with Apache for the redirect. My Apache is set to use port 270XX. As long as the port is in the sv_downloadurl it will use the port.
Then again, that is for normal HTTP grabbing, not sure how that is going to pan out in your situation though.
or use dyndns.org
Sorry, you need to Log In to post a reply to this thread.