|
-
Sep 8th, 2006, 09:46 AM
#1
Thread Starter
Addicted Member
problem connecting with my external ip address..
Hi every1..
I've been doing a simple Client/Server program for chating, it connects through the ip address, it works perfectly with modems and on local network using local ip address, but the problem is when i try to connect to another LAN, it doesn't though i use it's external ip not the lan ip.. wuts wrong??
thanks..
-
Sep 8th, 2006, 12:42 PM
#2
Fanatic Member
Re: problem connecting with my external ip address..
 Originally Posted by Sub_Zero_6
Hi every1..
I've been doing a simple Client/Server program for chating, it connects through the ip address, it works perfectly with modems and on local network using local ip address, but the problem is when i try to connect to another LAN, it doesn't though i use it's external ip not the lan ip.. wuts wrong??
thanks..
the other lan will need to portforward from their external address to their internal address.
-
Sep 8th, 2006, 05:20 PM
#3
Thread Starter
Addicted Member
Re: problem connecting with my external ip address..
-
Sep 8th, 2006, 10:37 PM
#4
Fanatic Member
Re: problem connecting with my external ip address..
In the majority of lans currently present through out today's society consists a device known as a router. This device does esentially what it's name describes... it routes packets. In this enviroment what usually exists is what's known as basic NAT (Network Address Translation). NAT is a technique in which a router rewrites the source and/or destination Internet addresses in a packet as it passes through, typically to allow multiple hosts to connect to the Internet via a single external IP address. NAT keeps track of outbound connections and distributes incoming packets to the correct machine.
This would be where Port Forwarding comes in. Port Forwarding is the act of forwarding a network port from one network node to another. This technique can allow an external user to reach a port on a private IP address (inside a LAN) from the outside via a NAT-enabled router.
You may want to take a look at www.portforward.com
-
Sep 9th, 2006, 03:14 AM
#5
Thread Starter
Addicted Member
Re: problem connecting with my external ip address..
u mean to connect to another lan there's a diffrent ip other the external and local one?
-
Sep 9th, 2006, 11:07 AM
#6
Fanatic Member
Re: problem connecting with my external ip address..
 Originally Posted by Sub_Zero_6
u mean to connect to another lan there's a diffrent ip other the external and local one?
no, what I mean is... to connect to another system in another lan you'll have to setup port forwarding in that lan's router to port forward from their external address to their internal address.
-
Sep 10th, 2006, 07:16 AM
#7
Thread Starter
Addicted Member
Re: problem connecting with my external ip address..
i can enable port forwarding but from the router config. is there any way to do it using visual basic?
thanks..
-
Sep 12th, 2006, 01:44 PM
#8
Re: problem connecting with my external ip address..
Not only can't you do it from VB, you can't do it on the other LAN - someone who has permissions on the other router has to connect to that router (usually from inside the LAN) and forward whatever port(s) your application is using. This is regardless of the application - incoming connections have to be forwarded on any LAN that expects to handle incoming connections (like web servers, ftp servers, etc.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Sep 24th, 2006, 07:45 PM
#9
Fanatic Member
Re: problem connecting with my external ip address..
@Al42
Acctually, there are 2 ways.
One way would be to preprogram the router page into the VB6 app to enter the private IP and the port into the router. Which is very....not smart?
Another way is that, some newer routers support whats called PnP (is that whats its called?) port forwarding, few people have acctually had success with this.
Both, would have to be ran on the LAN that the router is on.
-
Sep 24th, 2006, 09:37 PM
#10
Re: problem connecting with my external ip address..
 Originally Posted by k1ll3rdr4g0n
@Al42
Acctually, there are 2 ways.
One way would be to preprogram the router page into the VB6 app to enter the private IP and the port into the router. Which is very....not smart?
Not doable at all unless you know which router it is, whether the gateway address has been changed and what the login and password are.
Another way is that, some newer routers support whats called PnP (is that whats its called?) port forwarding, few people have acctually had success with this.
UPnP - it stand for You Pray and Pray (and prove that prayer doesn't work).
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Sep 25th, 2006, 12:27 PM
#11
Fanatic Member
Re: problem connecting with my external ip address..
 Originally Posted by Al42
Not doable at all unless you know which router it is, whether the gateway address has been changed and what the login and password are.
If he just made it for his own router, why not?
-
Oct 4th, 2006, 05:23 PM
#12
Re: problem connecting with my external ip address..
If it's his own router, it's a lot easier to just log into the router and do what needs doing. Why spend the time and effort to learn to write code for a function you're going to perform once? The return is pretty negative.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
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
|