Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 17th, 2003, 02:15 AM
nickcol nickcol is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: uk
Posts: 62 nickcol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 17 m 15 sec
Reputation Power: 6
winsock transfer file through nat

I am using vb6 and winsock to transfer files , Some of our customers use it to send files to us and we send a file back automaticaly.


Some of the customers have a internet router which uses nat then it does not work. You have to add a static route from internet to the ip address of the pc on the network for it to work.


i have added a static route for us but cannot expect all our customers to do this.

Can this be overcome with programing. are there any code samples ,web pages ?

thankls for any help Nicholas

Reply With Quote
  #2  
Old December 17th, 2003, 02:29 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I think the router which use nat technology can transfer the data package from internal ip address to external ip address automatically.If your software use the fixed ip in the communication period,u must change the ip which at the internal to external!..But it need add static route??

Reply With Quote
  #3  
Old December 18th, 2003, 09:18 AM
nickcol nickcol is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: uk
Posts: 62 nickcol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 17 m 15 sec
Reputation Power: 6
If my pc is on a modem and the remote one is on a network which has a broadband router giving there network internet access.


if i use

frmchat.tcpsocket.Connect remoteipaddress, 21

it cannot connect to it as they have a internet IP address and then local ip addresses on there lan.

if you connect to someone with only a modem connection then there internet ip is on there pc so it will connect.

How do you connect in this situation. FTP programs,msn messenger , icq gets over this. ???

Nick

Reply With Quote
  #4  
Old December 18th, 2003, 07:35 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I think the NAT function of the broadband router is transparent to internal users.If u can access internet web site and the network manager permit u to access internet ip ftp,u must can do it!U can try to input these command in the console windows:
ftp xxx.xxx.xxx.xxx
note:xxx.xxx.xxx.xxx is the internet ip,as ftp.microsoft.com...Good luck!

Reply With Quote
  #5  
Old December 18th, 2003, 08:09 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,826 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 19 h 46 m 30 sec
Reputation Power: 765
Usually there is a way to set up the NAT router to forward ports. For example, in a low-end Linksys DSL router there is a Forwarding page in the setup where can identify the port number you want to allow, and designate an internal IP as the desired destination.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > winsock transfer file through nat


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway