Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Pedlar on May 01, 2005, 03:18 PM

Title: BNLS Problem?
Post by: Pedlar on May 01, 2005, 03:18 PM
Im using CSocket to connect and i do

sckBNLS.Connect "bnls.valhallalegends.com", 9367
AddChat vbRed, "Conecting..."


But it never connects to it. i have

Private Sub sckBNLS_OnConnect()
AddChat vbGreen, "Connected!"
End Sub


But it never calls it. it jus sits there.
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 03:20 PM
if i ping bnls.valhallalegends.com i get:

Quote
Pinging bnls.valhallalegends.com [63.161.183.205] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 63.161.183.205:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Title: Re: BNLS Problem?
Post by: MyndFyre on May 01, 2005, 03:37 PM
Don't know what to tell you.  I have no problems:

E:\Documents and Settings\Rob>ping bnls.valhallalegends.com

Pinging bnls.valhallalegends.com [63.161.183.205] with 32 bytes of data:

Reply from 63.161.183.205: bytes=32 time=85ms TTL=117
Reply from 63.161.183.205: bytes=32 time=96ms TTL=117
Reply from 63.161.183.205: bytes=32 time=110ms TTL=117
Reply from 63.161.183.205: bytes=32 time=102ms TTL=117

Ping statistics for 63.161.183.205:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 85ms, Maximum = 110ms, Average = 98ms

E:\Documents and Settings\Rob>tracert bnls.valhallalegends.com

Tracing route to bnls.valhallalegends.com [63.161.183.205]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  192.168.1.1
  2    29 ms    30 ms    30 ms  (edited out)

  3    30 ms    29 ms    29 ms  192.168.100.1
  4    31 ms    31 ms    31 ms  192.168.10.2
  5    30 ms    30 ms    31 ms  phx-edge-01.inet.qwest.net [205.171.129.73]
  6    30 ms    30 ms    30 ms  tmp-core-01.inet.qwest.net [205.171.129.5]
  7    42 ms    42 ms    42 ms  bur-core-02.inet.qwest.net [205.171.13.45]
  8    41 ms    42 ms    41 ms  bur-brdr-01.inet.qwest.net [205.171.13.50]
  9    46 ms    46 ms    47 ms  sl-bb22-ana-6-2.sprintlink.net [144.232.9.237]
10    73 ms    73 ms    72 ms  sl-bb22-fw-10-1.sprintlink.net [144.232.9.250]
11    73 ms    73 ms    74 ms  sl-gw22-fw-0-0.sprintlink.net [144.232.0.131]
12    85 ms    97 ms    97 ms  sl-vpnsys-1-0.sprintlink.net [144.232.221.26]
13    87 ms    91 ms    98 ms  63.161.183.205

Trace complete.
Title: Re: BNLS Problem?
Post by: QwertyMonster on May 01, 2005, 03:43 PM
Quote from: Pedlar on May 01, 2005, 03:18 PM
Im using CSocket to connect and i do

sckBNLS.Connect "bnls.valhallalegends.com", 9367
AddChat vbRed, "Conecting..."

It prob wont make much difference but try this:
sckBNLS.close
sckBNLS.RemoteIP = "bnls.valhallalegends.com"
sckBNLS.RemotePort = 9367
sckBNLS.Connect

It wont make much difference but atleast try it
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 03:46 PM
Does your router allow packets on port 9367?
Title: Re: BNLS Problem?
Post by: iago on May 01, 2005, 05:08 PM
Quote from: Blaze on May 01, 2005, 03:46 PM
Does your router allow packets on port 9367?

I've never heard of a router blocking egress (outgoing) packets.  A firewall might, though.  If you have a firewall, make sure it isn't blocking that port.

Also make sure you didn't map bnls.valhallalegends.com to a weird ip. 

Perhaps it was down but it's ok now?
Title: Re: BNLS Problem?
Post by: UserLoser. on May 01, 2005, 05:46 PM
http://www.userloser.net/serverstatus/?status

Those are not my servers, they are just subdomains set up pointing to IP addresses
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 05:56 PM
Quote from: iago on May 01, 2005, 05:08 PM
Quote from: Blaze on May 01, 2005, 03:46 PM
Does your router allow packets on port 9367?
I've never heard of a router blocking egress (outgoing) packets.
Couldn't the connection accepted response be filtered out?
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 06:07 PM
EDIT]: Removed my ip from the trace route.

C:\Documents and Settings\default>tracert bnls.valhallalegends.com

Tracing route to bnls.valhallalegends.com [63.161.183.205]
over a maximum of 30 hops:

  1     4 ms     8 ms     7 ms  192.168.0.1
  2    24 ms    24 ms    24 ms  (EDIT)
  3     *     gw.Sprint.shoreham.net [65.161.90.1]  reports: Destination net unr
eachable.

Trace complete.


Thats the Trace Route for it. I can connect to bnls with stealthbot, but not with tis

[Edit]: This is odd...

C:\Documents and Settings\default>ping bnls.valhallalegends.com

Pinging bnls.valhallalegends.com [63.161.183.205] with 32 bytes of data:

Request timed out.
Reply from 65.161.90.1: Destination net unreachable.
Reply from 65.161.90.1: Destination net unreachable.
Reply from 65.161.90.1: Destination net unreachable.

Ping statistics for 63.161.183.205:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 06:14 PM
Also i open Port 9367 on my firewall.
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 06:14 PM
Quote from: Pedlar on May 01, 2005, 06:07 PM
[Edit]: This is odd...

C:\Documents and Settings\default>ping bnls.valhallalegends.com

Pinging bnls.valhallalegends.com [63.161.183.205] with 32 bytes of data:

Request timed out.
Reply from 65.161.90.1: Destination net unreachable.
Reply from 65.161.90.1: Destination net unreachable.
Reply from 65.161.90.1: Destination net unreachable.

Ping statistics for 63.161.183.205:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Its pinging it at port 80, not 9367 & I don't know about that time out.
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 06:21 PM
i can connect to bnls.valhallalegends.com on port 80, but not port 9367
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 06:30 PM
Are you using Service Pack 2?
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 06:31 PM
no im using SP1
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 06:34 PM
Do you use a router?
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 06:37 PM
yea i use a D-LINK router.

I got it working, i dont know how...but i got it working...I fiddled aroudn with some stuff
Title: Re: BNLS Problem?
Post by: MyndFyre on May 01, 2005, 06:54 PM
Quote from: Blaze on May 01, 2005, 06:34 PM
Do you use a router?

Blaze, the incoming data wouldn't be filtered if he's using an outgoing TCP connection.  His PC initialized the connection; if it were connection-less (like UDP) the router might filter it.
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 07:03 PM
Ok ii made the sckBNLS into a Winsock. i was using CSocket. as a winsock it worked
Title: Re: BNLS Problem?
Post by: Pedlar on May 01, 2005, 07:26 PM
Ok now i have a new problem >.<

I get CONNECTED
Sent Packet.
Closed


and the code im using is:

Private Sub ws_Connect()
Dim P As New Packet
AddChat vbGreen, "CONNECTED"
        P.InsertNonNTString ""
        P.wsend ws, &HE, pbnls
End Sub
Title: Re: BNLS Problem?
Post by: Archangel on May 01, 2005, 07:45 PM
Ok, you dont need to logon to BNLS, you just need to connect and send the packet you want.

But if you got Account on BNLS go for it.


    Dim P As Packet
    Set P = New Packet



    P.InsertNonNTString ""


Ok, why doing that? just send packet.
Title: Re: BNLS Problem?
Post by: Blaze on May 01, 2005, 08:16 PM
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=177

Do not send an empty string, send your bnls account.. if you have one that is. If you don't, just ignore 0x0E & 0x0F
Title: Re: BNLS Problem?
Post by: Pedlar on May 02, 2005, 06:45 PM
if i bypass 0x0E what should i send inplace of it?
Title: Re: BNLS Problem?
Post by: Blaze on May 02, 2005, 06:47 PM
Just ignore them. You do not need to send anything inplace of them. Continue on to whatever you were doing on bnls.
Title: Re: BNLS Problem?
Post by: Archangel on May 02, 2005, 06:59 PM

This might help: http://www.valhallalegends.com/yoni/bnlsprotocolspec.txt