|
-
Nov 30th, 2010, 05:21 AM
#1
Thread Starter
Addicted Member
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
-
Nov 30th, 2010, 05:53 AM
#2
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 
-
Nov 30th, 2010, 06:17 AM
#3
Thread Starter
Addicted Member
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.
-
Nov 30th, 2010, 07:31 AM
#4
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.
-
Nov 30th, 2010, 08:10 AM
#5
Thread Starter
Addicted Member
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....?
-
Nov 30th, 2010, 08:28 AM
#6
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.
-
Nov 30th, 2010, 09:03 AM
#7
Thread Starter
Addicted Member
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..
-
Nov 30th, 2010, 08:22 PM
#8
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.
-
Nov 30th, 2010, 10:55 PM
#9
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
-
Dec 1st, 2010, 08:08 AM
#10
Thread Starter
Addicted Member
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.
-
Dec 1st, 2010, 08:14 AM
#11
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|