Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Net connection problem
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
djordje




PostPosted: Sat Oct 20, 2007 9:21 pm   Post subject: Net connection problem

Ive been trying for quite sometime to connect my game client to my server through the internet, but nothing worked. I have a D-link DI-524 router on my computer but i do not believe the router is causing the problem because i tried to connect the client to the server when my computer was directly connected to the internet without any success. My client connects to port 5534 and the server waits on 5534.

I have tried to connect using lan and it works, connecting on (192.168.0.120), but when connecting on the internet ip (which player would have to do) it did not work.

I understand the the net module is very slow and i plan on rewitting the server in visual basic, but the net module should be al least capable of connecting to the server.

Does anyone have any suggestions on fixing this problem?
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Sun Oct 21, 2007 8:28 am   Post subject: RE:Net connection problem

Why don't you give us more details about the client and server? Are you forwarding the appropriate port to your server?
djordje




PostPosted: Sun Oct 21, 2007 11:04 am   Post subject: Re: Net connection problem

as far as i know when the router is disconnected you shouldnt have to forward the ports. I dont have windows firewall(i have sp 1), ive tried disabling antivirus programs but they arn't the problems and as ive stated server waits on 5534 and client attempts to connect to 5534, i do not know of any parts where you have to forward the port when you are directly connected to the internet.
Mazer




PostPosted: Sun Oct 21, 2007 12:18 pm   Post subject: RE:Net connection problem

I'm confused. At first it sounded like the server is on a local network. Can you please give more information?
djordje




PostPosted: Sun Oct 21, 2007 12:57 pm   Post subject: Re: Net connection problem

I may have explained it wierd, the server is on my computer. It can be for lan or internet depending on the ip address that the client connects to (if its 192.168.0.120, its lan, if else its internet). The lan portion works, when i tell the client to connect to 192.168.0.120 the client connects, but when i put in the internet ip, so that the client connects through the internet, the client can't connect.

When i have my router connected i have lan, but when i disconnected router and connected directly to internet, i only have internet(no lan). Now there shouldnt be port forwarding because server is directly connected to internet and client should have access to it, but when i try to connect to server with my internet ip there is no connection, this means that router isnt problem but someother program is, or turing. My question is is there a way to fix this, did anyone have the same problem with some windows program blocking connection, is it possible for the isp to be blocking the connection, i cant find the problem and i know that the router isn't causeing it.
Latagore




PostPosted: Sun Oct 21, 2007 5:41 pm   Post subject: Re: Net connection problem

Wait, CAN you even connect to the internet in Turing? Shocked Try recreating a basic program that sends information to your computer through the internet and see what happens. Like create a network and send information to the other computer by creating a new file and inputting information into it.
Clayton




PostPosted: Sun Oct 21, 2007 9:07 pm   Post subject: RE:Net connection problem

Yes, you can. There have been examples in [Turing Submissions], I'm just too damn lazy to search for them.
djordje




PostPosted: Mon Oct 22, 2007 2:57 pm   Post subject: Re: Net connection problem

turing has the code to send things through the internet, its just that something is blocking incoming data from the internet, its not just turing that i cant host, i cant host in warcraft 3 or in any games. I suppose i should ask other forums that specialize in fixing internet problems.
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Mon Oct 22, 2007 4:41 pm   Post subject: RE:Net connection problem

Try this:
Open your command prompt (Win+R, "cmd") and type:
code:
telnet [i]your_ip_address your_port_number[/i]


See if it will connect and start trying to communicate with your server (however your protocol works).

Also, try your client on computers outside of your network.
djordje




PostPosted: Mon Oct 22, 2007 4:58 pm   Post subject: Re: RE:Net connection problem

Mazer @ Mon Oct 22, 2007 4:41 pm wrote:
Try this:
Open your command prompt (Win+R, "cmd") and type:
code:
telnet [i]your_ip_address your_port_number[/i]


See if it will connect and start trying to communicate with your server (however your protocol works).

Also, try your client on computers outside of your network.


The telnet thing returns could not open connection to host.

Ill try the client on my friend's computer but i doubt it will work.
Mazer




PostPosted: Mon Oct 22, 2007 5:30 pm   Post subject: RE:Net connection problem

Er... I'm hoping you ignored the bbtags and actually substituted the text with your actual (external) IP address and the port on which the server listens. If you can't telnet in, then the problem isn't with Turing.

Are you still connecting directly to the modem? If not, did you actually forward the port?
djordje




PostPosted: Mon Oct 22, 2007 6:05 pm   Post subject: Re: Net connection problem

I'm pretty sure turing isn't causing this, like i said i was wondering whether someone had a problem like this before.

I did ignore the bbtags, something else other than the router is causing this, maybe virus, or maybe my antivirus or my isp rogers, does anyone know if rogers blocks connections?
rdrake




PostPosted: Mon Oct 22, 2007 6:09 pm   Post subject: Re: Net connection problem

djordje @ Mon Oct 22, 2007 6:05 pm wrote:
does anyone know if rogers blocks connections?
I don't believe Rogers would be in the ISP business for all too long if they blocked most connections.

Check:

  • Port forwarding settings.
  • Receiver's port forwarding settings.


Sounds to me like one of the above is causing the issue.
djordje




PostPosted: Mon Oct 22, 2007 7:01 pm   Post subject: Re: Net connection problem

rdrake @ Mon Oct 22, 2007 6:09 pm wrote:
I don't believe Rogers would be in the ISP business for all too long if they blocked most connections.

Check:

  • Port forwarding settings.
  • Receiver's port forwarding settings.


Sounds to me like one of the above is causing the issue.


Ive cheked all those ive had my father's friend come in who is server administrator take a look at this, he says everything with router and port forwaring is correct, its just something i have on my computer that is causeing this im not sure what. Or I am not port forwarding in the right place, all of the places for port forwarding I know of are for router, but when router is disconnected I don't know about any other port forwarding places.
Mazer




PostPosted: Mon Oct 22, 2007 7:45 pm   Post subject: RE:Net connection problem

Try hosting it on another computer and seeing if the problem persists?

EDIT: OK, port forwarding:
When you have a router or switch set up between your computer and your modem, you have an IP address to identify your computer which is different from the one that identifies your LAN. The purpose of port forwarding is to make sure the router knows where to direct an incoming connection request. This isn't a problem when you connect right to the modem because there's only one computer (yours). Is the router set to forward TCP or UDP or both?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 16 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: