Digital Paint Discussion Board
Development => Bugs, Feature Requests, and Feedback => Topic started by: jitspoe on March 07, 2007, 02:17:56 AM
-
Try this and let me know what it displays. It should print out a list of server IP's.
-
error 7
-
7 = CURLE_COULDNT_CONNECT. Not very helpful. I guess it doesn't take care of the proxy stuff automagically. Thanks for testing. At least I know not to waste (more of) my time with it, I guess.
-
Actually, scratch that. I found an option to enable proxy usage (hopefully). Try this one.
-
works for me at the office
-
I get the error 7. What port does this thing use? Or is that auto-detected?
-
error 7 with the other version as well =/
-
Zorchenhimer: Are you behind a proxy, too?
Maybe it doesn't auto-detect the proxy. I hoped it would...
-
I am behind the most strict proxy I know of. Basically all that is allowed through is HTTP/FTP/HTTPS (port:8080) and Google Talk (I think it uses 8080 too). So, I can see the sever list in Firefox, but pball cannot get it.
Is there a way that you could get the proxy settings from IE or Firefox?
-
Try this and see if it prints out any information about your proxy:
-
very interesting... where are you getting the information from? I have an autoconfig-script in both Firefox and Internet-Explorer, but disabled it on both (and addressed one of the proxies directly), yet it still printed that script's URL on that console window... hmm
-
I'm using this method here: http://support.microsoft.com/kb/226473
What I find kind of interesting is that you need a proxy to access websites, but you can still connect to servers directly. I'm wondering if maybe I should do away with the HTTP approach and just code a special login server that uses UDP or something.
-
Try this one. I made it print out more information.
-
yeah, it obviously prints out all the information in that option-array ;)
for INTERNET_PER_CONN_PROXY_SERVER, it only prints out a crpytic value: "ÉÛ§", all other values are readable:
INTERNET_PER_CONN_AUTODISCOVERY_FLAGS = 0x00
INTERNET_PER_CONN_FLAGS = 0x03
INTERNET_PER_CONN_AUTOCONFIG_URL = http://www.tennessee.uni-karlsruhe.de/proxy-a
utoconfig.pac
INTERNET_PER_CONN_PROXY_BYPASS = *.uni-karlsruhe.de;<local>
INTERNET_PER_CONN_PROXY_SERVER = ÉÛ§
Press Enter to continue...
-
Both proxyinfo's work. Btw, a special UDP server will not work for me. Everything was blocked, then some stuff was hand chosen and unblocked (like HTTP).
-
What I find kind of interesting is that you need a proxy to access websites, but you can still connect to servers directly. I'm wondering if maybe I should do away with the HTTP approach and just code a special login server that uses UDP or something.
I don't know why you're not letting the servers handle the authentication in the first place. Hash the username and password and send over the UDP stream to the server just like anything else in game, then hash the info again and have the server establish the HTTP connection to dplogin.com to perform the authentication. That would mean a lot less hassle for players, I think.
-
That would make sense. Oh, and you might want to ad a "please wait while your username is being verified" message instead of just freezing at "player connected".
-
Whoops. I screwed up. Try this one.
Bain: It does both. The main reason for the client login is to make sure the login works rather than connecting to the server and getting booted. It also has some stuff to reduce (and hopefully completely prohibit) spoofing.
Zorch: I really need to make the player validation done in a separate thread so there is no freezing at all. It's basically instantaneous for me, so I thought maybe I could get away with it. I really just wanted to get build 17 done with since it's been over a year.
Edit: Oh, and with that curl test, try this:
- Put the exe in an easy to access location (like c:\)
- Start|Run "cmd"
- cd c:\ (or wherever you put the exe)
- set http_proxy=http://proxy.ip.address:port
- cURLTest
-
with the autoconfig-flag enabled:
INTERNET_PER_CONN_AUTODISCOVERY_FLAGS = 0x00
INTERNET_PER_CONN_FLAGS = 0x07
INTERNET_PER_CONN_AUTOCONFIG_URL = http://www.tennessee.uni-karlsruhe.de/proxy-a
utoconfig.pac
PROXY_TYPE_AUTO_PROXY_URL
INTERNET_PER_CONN_PROXY_BYPASS = *.uni-karlsruhe.de;<local>
INTERNET_PER_CONN_PROXY_SERVER = proxy.tennessee.uni-karlsruhe.de:3128
Press Enter to continue...
-
(http://img232.imageshack.us/img232/6952/uhwc5.th.jpg) (http://img232.imageshack.us/my.php?image=uhwc5.jpg)
So what's this supposed to do?
-
This is a little program to see if pball will be able to contact the global login server through a proxy.
-
It's supposed to do exactly what you showed me in the screenshot. It's just a test app to make sure this method will work in paintball2 before I bother implementing it. Thanks for the response.
-
How is that supposed to help me not being able to login or get my serverlist.
-
How is that supposed to help me not being able to login or get my serverlist.
jitspoe made that little program as a test to see if it would work for you and others who are experiencing problems retrieving server lists and logging in using B17. Now he's taking the feedback that you guys are providing and making a decision with regards to including this library in the next B17 pretest. Hopefully he'll come up with a solution for you guys in the next pretest.
-
What bain said -- I need to make sure this works before I even bother putting it in the game. I'm probably going to move up to build 18 with this addition and keep the build numbers moving up, simply because it makes things easier to keep track of.
One last test, just to make sure everything is working together. This one should auto-detect the use of a proxy in your Internet settings and use it if you have it enabled, otherwise it will use the direct connection to download the list:
-
I loaded cURLTest_useIEproxy.zip up on my Win2003 vmware session and it does exactly as described for me. I tried changing some of the proxy settings within the internet options and it worked/failed accordingly. In terms of Linux, there is the http_proxy environment variable which you can plug into cURL (not sure if it detects that automatically on *nix). Hopefully this resolves issues for most players.
-
Jits, when I run this it pauses for a while then spits out error code 7. But I have a feeling its my school's proxy is blocking it. What port does it use?
-
XtremeBain: The http_proxy environment variable is respected on all operating systems, however, that's not what people typically use in Windows. I figure it would be easier to use the internet settings that are already being used.
Zorch: It's using whatever you have in your Internet settings. I went back to review your results but I guess you never posted them. Would you mind sharing what proxyinfo2fix displayed (you can send it in PM if you don't want other people to see).
-
thats the list of server ip's...
-
error 5 for me =/
-
5 = CURLE_COULDNT_RESOLVE_PROXY. Strange considering setting http_proxy and running the first curl test worked.
-
Ok, time for the first test of the UDP stuff. I'm starting out simple -- all it does is send a single "test" packet to the server and prints "Success!" if it gets a "testresponse" packet back. If this works, I'll move on to a full blown login server and serverlist server.
-
Works for me.
-
works for me as well
-
Works, next one :D