Results 1 to 12 of 12

Thread: problem connecting with my external ip address..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    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..

  2. #2
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    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.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    Re: problem connecting with my external ip address..

    explain plz

  4. #4
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    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
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    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?

  6. #6
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    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.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    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..

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  9. #9
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    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.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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.

    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

  11. #11
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    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?
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  12. #12
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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
  •  



Click Here to Expand Forum to Full Width