Results 1 to 11 of 11

Thread: TCP problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    TCP problem

    i have downloaded TCP program and try

    Adress:127.0.0.1
    Port: 2080


    it will connect ..

    but if i try My Ip

    Adress:125.60.246.133
    Port: 2080

    even port: 8080

    not connect


    what is the right IP or Port must i used? between client and server

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: TCP problem

    do you have firewall enabled ?
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: TCP problem

    no sir...its off..


    please try it to you if it is ok
    Last edited by standard; Nov 30th, 2010 at 08:57 AM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TCP problem

    First up, if you're going to attach a project, make sure you delete the obj and bin folders first, because you're not allowed to attach binary files. Secondly, you really should only be attaching a project as a last resort. Try providing a FULL and CLEAR explanation of exactly what you're doing and exactly what happens first, instead of expecting us to do all the work for you.

    That said, you need to think about what you're actually connecting to. How do you connect to the internet? Is it with a USB modem or through a router via ethernet? If it's the latter then your IP address on the internet is NOT the same as your machine's IP address on your internal network. If you connect to your external IP address then you're connecting to the router, not the computer. Unless you have the router configured to forward traffic on that port, it won't ever get to your machine.

    If you want to just communicate over an internal network then you can use your internal IP address. If you want to communicate over the internet then you need to look port forwarding. It might go by a different name, depending on your router. On my Belkin PlayMax it's called Virtual Servers.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: TCP problem

    @jmcilhinney

    you always helping me and thank you..

    but Im not a kind of high level like you i don't know what you are saying at all cause Im a beginner.

    sorry for attaching files..

    Im using router now and wifi by other home. i only know my ip address by WWW.whatismyip.com.

    thats is why i provide on address like that IP. but failed to connect.. is there any chance....?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TCP problem

    Like I said, that's the IP of your router on the internet, not the IP of your machine. If you want to find out the IP address of your machine then you can either look at the DHCP table in your router's configuration pages or else open a command prompt and type ipconfig and hit Enter.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: TCP problem

    ok i found... my Machine ID.. 192.168.1.40


    It works.. but this the problem now ..i try to pass my client to other user but they cannot connect with my IP machine server..

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TCP problem

    This is a VB.NET forum. It's not the place to discuss networking basics. As I have already said:
    If you want to just communicate over an internal network then you can use your internal IP address. If you want to communicate over the internet then you need to look port forwarding. It might go by a different name, depending on your router. On my Belkin PlayMax it's called Virtual Servers.
    That has nothing to do with VB.NET programming so it is beyond the scope of this forum.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Re: TCP problem

    Lookup port forwarding ... you will need to enable it for your router and point it at the computer since it won't know what internal device ip to route the command to...

    Also some routers like netgear do not route commands internally using the external IP (this is why i dont buy netgear) for example if you port forward port 80 on a netgear router to a computer and then goto http://x.x.x.x (where x.x.x.x is the external ip) you will get the router setup page , but if you go from the outside of the network into the same external address it will work as expected.

    Hope this helps
    Kris

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: TCP problem

    Wow look i have mistaken what i need...

    what i really want is ..


    Server to client sending private messages via IP www.Whatismyip.com

    how to do that .. does TCP can use that or no? what must i need...


    sample:

    i can send a message to you., if you open the Form You will receive '" hi Here is your Order shoes please get it on my home " when you open the form1.
    Last edited by standard; Dec 1st, 2010 at 08:11 AM.

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TCP problem

    We've already told you exactly what you need to do. The code is exactly the same no matter what IP address you're connecting to. What you have is a networking issue, not a programming issue. You've been told multiple times that you need to look into port forwarding so that any traffic sent to your external IP address on a specific port will then be forwarded to the appropriate machine via its internal IP address. This has nothing whatsoever to do with VB.NET. It's not going to change no matter how many times you ask. For the FOURTH time, you need to look into port-forwarding, which is something you configure on your router and has NOTHING WHATSOEVER to do with VB.NET.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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