Valhalla Legends Forums Archive | Visual Basic Programming | Problem getting Server to accept connections from outside network

AuthorMessageTime
vector
I have a server that I made (VectorNet), and it won't accept any connections from outside the network, and I'm wondering what on earth is going on.

I invoked .Listen on the listening socket, and yes, I set the protocol to sckTCPProtocol

I forwarded the port the Server listens on from the router, and added an exception to it on the firewall, and no beans.

From a client plugin:

[quote]
[05:55:10 PM] [VectorNet] Socket error #10061: Connection is forcefully rejected
[/quote]

that's when I attempt to connect to the no-ip DNS host that goes back to my computer.

What gives?
October 22, 2008, 12:58 AM
Barabajagal
What port are you using, and are you sure your ISP doesn't block that port?
October 22, 2008, 3:47 AM
Sixen
In addition to what Andy said, you will need to make sure your router/firewall(s) are configured for that port.
October 22, 2008, 5:38 AM
vector
the port is 1337. I have made an exception on the firewall, and forwarded the port.

Would the ISP ban a port that is not specifically defined in their "custom program port" lists?

I have Verizon FioS
October 22, 2008, 5:40 AM
Yegg
Did you bother trying other posts? Just try 30000 or something. I vaguely remember for certain types of connections that you couldn't have under a certain number, and I think 1337 would be included. Just something I vaguely remember reading however, so it's not necessarily true.
October 22, 2008, 5:46 AM
Spht
Did you remember to register the connection with WSAAsyncSelect?  Assuming you're using the winsock control that comes with vb6, it's pretty easy--just .accept on ConnectionRequest
October 22, 2008, 6:20 PM
dlStevens
What kind of router do you have? I had this similar problem but I solved it.
October 23, 2008, 3:42 AM
vector
[quote author=Spht link=topic=17691.msg180134#msg180134 date=1224699645]
Did you remember to register the connection with WSAAsyncSelect?  Assuming you're using the winsock control that comes with vb6, it's pretty easy--just .accept on ConnectionRequest
[/quote]
Yes..

@Dale: I don't know if this helps

[quote]
Firmware Version: 4.0.16.1.45.160.27
Model Name: MI424-WR
[/quote]

What did you do?
October 23, 2008, 2:39 PM
dlStevens
[quote author=vector link=topic=17691.msg180142#msg180142 date=1224772787]
[quote author=Spht link=topic=17691.msg180134#msg180134 date=1224699645]
Did you remember to register the connection with WSAAsyncSelect?  Assuming you're using the winsock control that comes with vb6, it's pretty easy--just .accept on ConnectionRequest
[/quote]
Yes..


@Dale: I don't know if this helps

[quote]
Firmware Version: 4.0.16.1.45.160.27
Model Name: MI424-WR
[/quote]

What did you do?
[/quote]

Well I have a linksys router, I don't know how many are setup this way:

[img]http://img390.imageshack.us/img390/6929/mehfl5.jpg[/img]

I was putting 192.168.1.100 any none of my shit would forward properly, then I somehow got the idea to try 192.168.1.101 and they're forwarded and my server works. So maybe you think you forwarded your ports correctly but didnt?
October 23, 2008, 5:18 PM
vector
That would be rather funny if I forwarded the port to the computer I'm not using =/

Well, in the past I've hoted a JBLS server, and that worked fine. In the future, I plan to have a dedicated JBLS, if I can keep the computer on for that long :)
October 24, 2008, 8:35 AM
vector
I tested it out today on my home network.

I was able to accept connections from two people, since they were the only ones who I gave the VNClient.exe to. Zone, one of my friends, as well as DeaN o.o
November 24, 2008, 7:25 AM
vector
I was going through my code, and managed to fix all problems that related to crashing both the client and the server.

I just have to be more careful in VB6 with handling multiple sockets.

But, all is good.

Thanks for helping, guys.
December 3, 2008, 1:29 AM

Search