Lost Password?

Go Back   CodeCall Programming Forum > Software Development > General Programming > Programming Theory

Programming Theory Discuss programming theory, algorithm efficiency, logic, and other any other category where math and computer science overlap.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-2007, 08:57 AM
rickyk586 rickyk586 is offline
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0
rickyk586 is on a distinguished road
Wink Impossible, even for you??

Is there any way to establish a TCP connection between two client sockets without one of them being a server?

Task: To establish a connection between two computers.

Requirements:
  • TCP connection (socket)
  • The two computers to be connected cannot listen to ports/accept connections (like a server does).
  • The two computers can however initiate a TCP connection (like a client does)
  • The network path between the two computers cannot be listened to (sniffed).
  • Any number of computers can be used, and these restrictions only apply to the two computers to be connected.

I am 99% sure that this task is impossible, but there are some pretty smart people out there so I may be wrong...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-07-2007, 11:13 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Mod
 
Join Date: Jul 2006
Age: 35
Posts: 1,758
Last Blog:
Game software (GURPS)
Rep Power: 24
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default

One way this has been done with some software is to have a third computer which is a server.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-07-2007, 02:37 PM
Maurice_Z Maurice_Z is offline
Learning Programmer
 
Join Date: Nov 2007
Location: Poland
Posts: 35
Rep Power: 3
Maurice_Z is on a distinguished road
Send a message via ICQ to Maurice_Z Send a message via AIM to Maurice_Z Send a message via MSN to Maurice_Z Send a message via Yahoo to Maurice_Z
Default

Well, since there is no Server to listen to ports, you can't get any data, no matter how hard you try, I think... That's how far my logic can take me ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-08-2007, 03:15 PM
rickyk586 rickyk586 is offline
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0
rickyk586 is on a distinguished road
Default

Still no one can answer it??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-09-2008, 11:40 AM
DuneMan DuneMan is offline
Newbie
 
Join Date: Feb 2008
Posts: 1
Rep Power: 0
DuneMan is on a distinguished road
Default

trick one I think
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 02-13-2008, 06:16 AM
R-G's Avatar   
R-G R-G is offline
Programmer
 
Join Date: Apr 2007
Location: Europe
Posts: 144
Rep Power: 0
R-G is an unknown quantity at this point
Default

Well, this issue is elementary (not so hard to do in the practice as it sounds like, or as some other issues theoretically could be), but it is definitely not conveniently.

I could give you a nice introduction on this issues without any problems, but I don't have every minute free time, so I recommend that all people that are interested in this issue try to search for it in a digital search engine. I suggest that you use appropriate parameters, so you will receive pure useful information.
__________________
Like an angel without a sense of mercy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 08:27 AM
rickyk586 rickyk586 is offline
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0
rickyk586 is on a distinguished road
Default

I would love to hear your answer. I have posted this question on many forums, and have searched the internet many times, and I have concluded that this task is impossible.

The connection requires sync numbers which are randomly generated with each connection, so there is no way to determine what the sync number will be (and there is no way to set the sync number in Java anyways).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
An impossible algorithm? crazyinstinct General Programming 1 03-03-2007 02:54 PM


All times are GMT -5. The time now is 12:57 AM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 70.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads