473,387 Members | 1,892 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,387 software developers and data experts.

Sockets Related Question...

Hi,
I have a socket based client server app.The data is in binary
format....
My question is that i am giving a hard coded port number to connect to
the server machince...
if that port number is closed or blocked by the server machine....
then how would i go about it..I mean how am i going to connect to the
server....
I think ill have to use some kind of proxy sevrer...(may be..just a
blind guess)..

So basically what shud i do if the port number im using is blocked on
the server machine.....
what is the preferred approach...
Thanks..
Cheers,

Bye

May 5 '06 #1
1 1031
Generally one has control over the server ... if this is more of a peer to
peer type app there are lots of methodologies that can be used. The one that
is assured to work is to use what is know as a middle man server ... both
clients connect to the public server and the server routes communications
between them. Generally in P2P systems you try to obtain a peer connection
(much faster) but if you fail you offer the option of falling back to a
middle man server.

There are also protocols such a upnp which many routers support that will
allow you to tell the router to allow data on port xxxx and to forward it to
your program.

Cheers,

Greg
"batista" <sa*********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Hi,
I have a socket based client server app.The data is in binary
format....
My question is that i am giving a hard coded port number to connect to
the server machince...
if that port number is closed or blocked by the server machine....
then how would i go about it..I mean how am i going to connect to the
server....
I think ill have to use some kind of proxy sevrer...(may be..just a
blind guess)..

So basically what shud i do if the port number im using is blocked on
the server machine.....
what is the preferred approach...
Thanks..
Cheers,

Bye

May 5 '06 #2

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

Similar topics

14
by: jack | last post by:
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does...
6
by: Nadina | last post by:
Hello, I have 3 questions, more or less related. Thank you in advance for your answers! Nadina 1) I am trying to find out if netdb.h exists on my current system. Is "find / -name netdb.h"...
4
by: 0to60 | last post by:
I have a question about socket programming in general. Exactly what happens behind the scenes when I one socket connects to a different socket in listen mode? Using the dotnet framework, I...
4
by: Garam | last post by:
I need to write a substantial amount of network code in C. The thing is, it has to be able to run on both Unix and Windows. Rather than writing separate code for each, I was looking for something...
2
by: Lenard Gunda | last post by:
Hi, I have the following problem when I am working with sockets in C#. I do not remember running into the same problem some while ago, when working with sockets from C++ (using native code, not...
4
by: Funke | last post by:
Assume that in C#, I create a server socket (listener) and code to start new threads with each connection using BeginAccept(). After some time, I have three threads running, each with their own...
2
by: Abubakar | last post by:
Hi, I'm working on a sockets app (using all those connect, socket, recv, send stuff). There is one problem on just one of many pcs i deal with. This pc, sometimes my app crashes on it, which is...
2
by: a_agaga | last post by:
Do you know are there some reasons why many do not make processes to communicate through memory? Why network connections (sockets) are used so commonly in IPC (inter process communication)...
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
13
by: Alexander Gnauck | last post by:
Hello, while using async sockets I ran into a strange problem which occurs only on some machines. I wrote a small demo application which can be used to reproduce the problem. You can download it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.