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..
Re: problem connecting with my external ip address..
Quote:
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.
Re: problem connecting with my external ip address..
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
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?
Re: problem connecting with my external ip address..
Quote:
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.
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..
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.)
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.
Re: problem connecting with my external ip address..
Quote:
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.
Quote:
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).
Re: problem connecting with my external ip address..
Quote:
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?
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.