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

Socket Server Problem

Huy,

I have made a tcp server which will listen on a specific ip and port, it is working fine but the problem is that i donot have any public ip. i am behind a proxy server and when i try to listen on my local ip, obviously it would not be visible from outsid. how to overcome this problem. i am using c# as programming language.

Same is the problem on client side.

Regards
Mar 2 '08 #1
7 1044
I have written code here for client/server communication:

[Link Removed]
Mar 3 '08 #2
Plater
7,872 Expert 4TB
(Are you behind a proxy or a router/firewall?)
You would need to configure the proxy server to allow for outside communications on a specific port to be allowed through it and directed towards you.
Then you would direct users to the outside IP address and port, which the proxy server would then (hopefully) direct inside to you.
Mar 3 '08 #3
If you have access to the proxy, forward the appropriate port to your server.

If you have access to your firewall, you can do one of two things: either forward the appropriate port to your server, or move your server into the DMZ.

Have fun!
John
[link removed]
Mar 3 '08 #4
MMcCarthy
14,534 Expert Mod 8TB
@ Rajeshshewale

If you wish to submit code please submit it in the thread and not using a link.

ADMIN
Mar 3 '08 #5
Huy

i am behind a proxy and i donot have access to proxy server. i want to know the procedure like adapted by yahoo messenger etc. Bcoz for using yahoo messenger we only have to provide proxy server ip and port and then we can communicate over internet, we donot have to do any port forwarding etc.
plz reply, i have very less time for my project.

Rajeshshewale plz send me the code on my email address, which is [email removed]

Regards
Mar 3 '08 #6
Plater
7,872 Expert 4TB
the code he had did not address getting around a proxy server
Mar 3 '08 #7
MMcCarthy
14,534 Expert Mod 8TB
@ All participants in this thread.

Please remember that links to commercial sites or competing forums are not allowed. Neither do we allow members to post their email addresses in posts.

Please take the time to read the site rules.

Posting Guidelines
Mar 3 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: anuradha.k.r | last post by:
hi, i am writing a socket program in python,both client side and server side.I've written the client side which is working perfectly fine(checked it against server program written in C).but as for...
8
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the...
4
by: DreJoh | last post by:
I've read many articles on the subject and the majority of them give the same solution that's in article 821625 on the MSDN website. I'm using the following code and when a the client disconnects...
4
by: zbcong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a...
2
by: zhebincong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
4
by: Sačo Zagoranski | last post by:
Hi! I'm writing a simple 3D First person shooter game. It is a multiplayer game, where all the players connect to one server.
13
by: coloradowebdev | last post by:
i am working on basically a proxy server that handles requests via remoting from clients and executes transactions against a third-party server via TCP. the remoting site works like a champ. my...
2
by: djc | last post by:
I read a network programming book (based on framework 1.1) which indicated that you should 'never' use the RecieveTimeout or the SendTimeout 'socket options' on TCP sockets or you may loose data. I...
6
by: ahlongxp | last post by:
socket.makefile() may lose data when "connection reset by peer". and socket.recv() will never lose the data. change the "1" to "0" in the client code to see the difference. confirmed on both...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.