• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Can't login due to proxy block in OTCv8

alucarddz

New Member
Joined
Apr 8, 2024
Messages
1
Reaction score
0
GitHub
alucarddz
I'm trying to log in to a server that I play on using my work machine, but it uses a proxy for company users. Is there any way to configure this proxy and its authentication in some part of the OTC code?

This is what I tried to do, the client opened correctly but I still get the ERROR 110 message.
(I don't have that much knowledge about Lua, but I tried)
this is the entergame.lua file:
Lua:
local function onHTTPResult(data, err)
  if err then
    return EnterGame.onError(err)
  end

  -- company proxy data
  local proxyHost = "host"
  local proxyPort = 8080
  local proxyUsername = "user"
  local proxyPassword = "password"
 
  g_network.setProxy(proxyHost, proxyPort, proxyUsername, proxyPassword)
end

function EnterGame.doLoginHttp()
  -- rest of the login data

  -- http request data
  local data = {
    type = "login",
    account = G.account,
    accountname = G.account,
    email = G.account,
    password = G.password,
    accountpassword = G.password,
    token = G.authenticatorToken,
    version = APP_VERSION,
    uid = G.UUID,
    stayloggedin = true
  }

  -- making the request, passing the data and the callback function
  HTTP.postJSON(G.host, data, onHTTPResult)

  EnterGame.hide()
end
 
Back
Top