Direct server links
#1
I am having a problem with connecting to a server from a website using a direct server link. That is, on my site, I can use the direct link only once because the connect port defaults to 28763. In example: My direct link for server one is assaultcube://76.233.167.228 which is ok because server one has ports 28763 but when I want to add 28765 as the next connect link: assaultcube://76.233.167.228:28765, I end up seeing assaultcube://76.233.167.228:28765:28763 when it tries to connect. The 28763 likes to add itself automatically. How would I be able to make a direct link using different ports? You may mess with this link and look yourself, just put assaultcube://76.233.167.228 in your web browsers address bar and hit go and watch, it will connect to 28763 and go to my server, then try adding 28765 and see what I'm talking about. All help appreciated :) and maybe some people learned a new trick today.
Thanks given by:
#2
I couldn't connect to it at all.
I typed in assaultcube://76.233.167.228 and it came up with bing lol
Thanks given by:
#3
(10 Feb 11, 08:33AM)Hav0c Wrote: I couldn't connect to it at all.
I typed in assaultcube://76.233.167.228 and it came up with bing lol

lol, you can't put it in a search engine, it has to go directly into your address bar otherwise you will get nothing. I also know now that you use bing to search for stuff xD
Thanks given by:
#4
assaultcube://iphere?port=blah&pass=blah
Thanks given by:
#5
(10 Feb 11, 01:04PM)Gibstick Wrote: assaultcube://iphere?port=blah&pass=blah

Nothing shows up past the ? and it still connects by defaults. So just to make sure, this is correct: assaultcube://76.233.167.228?28765=pass
Thanks given by:
#6
Same here

If the port is a custom one, or a password is used how do you form the url.
Have used the search function, points to the changelog. are there docs for this?
Thanks given by:
#7
assaultcube://76.233.167.228?port=28765
This is going to work

assaultcube://76.233.167.228:28765 will work in the next version of AC

In general it´s like
assaultcube://example.com/?password=secretpw&port=28763/
The slashes after "example.com" and "28763" aren´t needed. The first argument after the IP/Host starts with "?" and every following argument will get a "&". There is no strict order for the arguments, so it doesn´t matter if you write first "password" and later "port" or otherwise.
Thanks given by:
#8
This works,
same format as gibstiks post (must have been user-error)

ty guys

Quote "assaultcube://76.233.167.228:28765 will work in the next version of AC"
how about password? like will it be: assaultcube://76.233.167.228:28765:PASSWORD

or

assaultcube://76.233.167.228:28765&password=PASSWORD
Thanks given by:
#9
(10 Feb 11, 09:14PM)Bullpup Wrote: assaultcube://76.233.167.228:28765&password=PASSWORD
It will always be like this. For the ports the "port=28763" will work also in the later versions!

the ":" is a standard used for port definitions

EDIT:
as a little help: URL Generator
This generator isn´t finished yet but working ;)
Thanks given by:
#10
Hooray!
Thanks given by: