CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Murjax

Search: Search took 0.02 seconds.

  1. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    It works now. Thanks for your help.
  2. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    I understand that when both the client and server are on the same machine I use 127.0.0.1. I've gotten that to work. My goal though is for it to work when the client and server are on different...
  3. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    That's how I originally thought the connection was supposed to work. The problem (as I stated some posts back) is that when I have the server listen on any IP other than 127.0.0.1 a SocketException...
  4. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    I'm a little confused now. I fixed the port mistake, but I don't quite get what you mean when you say there's something wrong with my IP. I AM supposed to be listening on the localhost correct? The...
  5. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Private Sub Form1_Load(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles Me.Load

    server = New TcpListener(IP, port)

    server.Start()


    End Sub
  6. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    I thought I should have posted this earlier. Alright here's the code.

    First the client side.



    Private Sub transferButton_Click(ByVal sender As System.Object, _
    ByVal e As...
  7. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Ok well I've tested this a few different ways but haven't gotten anywhere. I don't think it's the router though because I turned off its firewall (and the computer's again) to test this. I also...
  8. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    So are you saying that some ports don't work? I was using 13000.
  9. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Hmm, now my connection request is being refused by the server. This would seem like a firewall problem but I disabled it for a couple minutes and it still refused it. Would being connected through a...
  10. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Good I'm glad to hear that. Well here's my specific problem. Every time I enter a remote IP to listen on the TcpListener refuses to start and throws a SocketException. I've tried both...
  11. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Ok I got that working. One more thing though. I was only able to connect to the local host using sockets. Is it possible to connect to a remote IP?
  12. Replies
    33
    Views
    15,674

    Re: Winsock and File Transfers

    Ok I'm a little unfamiliar with that class. I'm able to set up the client side ok but I can't figure out how to get the listener to retrieve and save the bytes as they're coming in.
  13. Replies
    33
    Views
    15,674

    Winsock and File Transfers

    I've been trying to make a program over the past week that reads a file and sends it via Winsock to another IP. I've had luck with Winsock in transferring small portions of text but I can't seem to...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured