Results 1 to 8 of 8

Thread: [RESOLVED] Client / Server issue

  1. #1

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Resolved [RESOLVED] Client / Server issue

    Ello,

    I've came across a little problem with my tcp / ip server.
    My client can connect to it with 127.0.0.1 ( localhost ), and 192.168.0.X, but every remote connection fails to connect. Any suggestions?

    Here's the connection rituals:

    Server
    Code:
                listener = New System.Net.Sockets.TcpListener(System.Net.IPAddress.Any, Port)
                listener.Start()
                listenThread = New System.Threading.Thread(AddressOf doListen)
                listenThread.IsBackground = True
                listenThread.Start()
    Client
    Code:
                client = New System.Net.Sockets.TcpClient(IP, Port)
                client.GetStream.BeginRead(readBuffer, 0, BYTES_TO_READ, AddressOf DoRead, Nothing)
    If there's any more necessary details that might help solve the problem, please let me know and I'll post them up.

    Thanks in advance

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Client / Server issue

    What is the error that you get when you try the remote connection?

  3. #3

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: Client / Server issue

    Connection timeout. No answer from the host between some period of time.
    I've tried this with me having the client and server and connecting to my ip but not through localhost (62.78.XXX.XXX), me having the client and my friend having the server and visa verce, shutting down both firewalls completely, yet the problem persists. I'm using vista32 (unfortunately).

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Client / Server issue

    Is the computer running the server behind a router?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: Client / Server issue

    I've never took the effort to learn about routers and their purposes, but I seem to have a router at least since http://192.168.0.1/ redirects to http://192.168.0.1/index.asp with some motorola page asking me for pass / name I really don't have.

    So if that's the problem, how to solve it? If solving it includes knowing the router password, is there a way around?

  6. #6
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Client / Server issue

    You need to forward the port you're using in the router. And yes it would require you to know the router password. Here is a thread on the same problem, it'll tell you what you need to do.

    There is no other solution if you're going to run the server on a computer behind a router.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  7. #7
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Client / Server issue

    Atheist is correct, however most people dont change there default router passwords. I'd google your router make and see if you can find the default password.

    Pino

  8. #8

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: [RESOLVED] Client / Server issue

    Problem solved by reseting the router, and by doing that reseting the default password as well. Works a treat now, cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width