473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

tcpClient switching between networks

nic
Hi,
I am building a tcpClient which is supposed to connect to a 3rd party server using a private point-to-point connection. Our internal network is 192.168.16.0 and the private network is on the 192.168.64.0 subnet. We have a webserver which will recieve requests, contact the private server, get a response and send it back to the client. The webserver has an IP on the internal and private network (it essentially is straddling both networks). I have added a static route on the webserver sending all requests for a certain IP to the private network.
route add xxx.xxx.xxx.0 MASK 255.255.255.0 192.168.64.1


From the webserver, I can successfully ping the private 3rd party server via our private network. When I run the tcpClient it tries to connect via the internal network even though the connecting IP should route through the private network. Why would pinging route properly but the tcpClient not? I don't see anyway to tell the tcpClient to use the private gateway/network.

If anyone has done anything similar I would appreciate any suggestions.
Jul 21 '05 #1
1 1122
Hi Nic,

Mainly this is in my opinion not a dotNet problem.

The 192.168.xxx.xxx IP adres group is as well as the 10.xxx.xxx.xxx reserved
for private intern network use (It is never used on Internet).

Your webserver should also have an external IP adres, when it is reachable
from the outer world.
(That should be pingable as well from intern connections when that is not
blocked by a router).

I hope this helps?

Cor
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stu | last post by:
I'm using tcpClient to send data to a pocket pc from the server. The server is dual homed and tcpClient seems to bind to the first address (.AddressList(0)) - how do I bind that to another address...
3
by: Daniel | last post by:
TcpClient close() method socket leak when i use TcpClient to open a connection, send data and close the TcpClient with myTcpClientInstance.Close(); it takes 60 seconds for the actual socket on...
3
by: מורדי | last post by:
Hi, I'm writing a client/server application in which the client send a series of screenshots to the server to be saved using the tcpclient. in most cases the first screenshot is transmitted ok...
3
by: Ricardo Quintanilla | last post by:
i had a problem whom i do not know how to explain. i was using a TcpClient (System.Net.Sockets.TcpClient) object to send and receive data to an AS400 socket. Two months ago it started to work...
1
by: hamil | last post by:
I am having trouble using the TcpListener and TcpClient classes. At the end of this post is server code that runs, and a class whose purpose is described below. I need to know when the client...
1
by: nic | last post by:
Hi, I am building a tcpClient which is supposed to connect to a 3rd party server using a private point-to-point connection. Our internal network is 192.168.16.0 and the private network is on the...
4
by: J.C. | last post by:
So --my first VB program is to build a database of our large (1000+ networks) network. I would like to start by collecting all I can from our router configuration files. I can see that I can...
2
by: JamesB | last post by:
I have a service and a client forms app - I want to be able to have the service send data back to the client app intermittently, and I've established a connection between the two using tcpclient....
2
by: Brian | last post by:
Hello, I have an app where I am switching between development mode and live mode, phyically seperate networks. What I would like to try and figure out is, how can I have my app know which db...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.