Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 21st, 2005, 1:40 PM   #11
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Sane
Nah, it's for a Remote PC Accessing program. So the program is for someone who wants to be able to access their computer from a distant location without having to worry about uploading crap, or paying for a domain name. This need applies to a lot of people, including those who had no clue port forwarding existed (IE, me).
Unfortunately, if you're behind a NAT, people cannot connect directly to you. If port forwarding is out of the question, you need to have a third party that acts as the middleman. Your computer connects to the third party, and the remote accessor connects to the third party, which then connects the two streams. This is how Skype manages to work through NATs; it routes VoIP streams through other Skype users that are not behind NATs, encrypting the voice data so it can only be read by the intended recepient.

It's worth saying that only people behind routers will have a problem. Those connected direct to the net through a DSL/Dialup/whatever modem will be able to listen for incoming connections.
Arevos is offline   Reply With Quote
Old Nov 21st, 2005, 3:24 PM   #12
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Do you think using some fancy os calls could forward a port systematically (and permanently) through a router. Or will it always be different depending on the router, ISP, etc?
Sane is offline   Reply With Quote
Old Nov 21st, 2005, 4:20 PM   #13
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I would murder the guy that came up with a way to do that. I like having only certain ports forwarded - it's a great blockade against "crackers" if they can't even get close.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 21st, 2005, 4:27 PM   #14
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
I think it will entirely depend on the router. My router, for example, is configurable through a web-interface. I know of no central API for playing with this and think it would be a very big security issue if there was one.
Your best choice is that which Arevos mentioned - going through a third party. A central server would be the nicest, though may cause too much strain if many people start using your application, and it would also be a lot slower than a direct connection (which is why MSN file transfers go so slow, for example).
You might just want to consider a friendly section in your installation wizard which will see if they can be connected to from outside - if they can't, this friendly graphical screen will tell them to forward a port, with details on how to do so with the most widespread routers.
Cerulean is offline   Reply With Quote
Old Nov 21st, 2005, 5:07 PM   #15
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Same here - I type 192.168.2.1 into my web browser, and I get a pretty HTML interface. P2P routing would be the most effective, but also the hardest way of doing it, and it would slow things down a little.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 21st, 2005, 5:22 PM   #16
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
Well the way things work for me is if I go to 192.168.2.1 in my web browser I see the settings for my wireless router. You have to go to Firewall>Virtual Server, then you can specify what ports to forward to your computer and which to block ect... I think this should do it fine. I had a problem with an application not being able to send on certain ports, so I forwarded a few of them
zorin is offline   Reply With Quote
Old Nov 21st, 2005, 5:47 PM   #17
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
The problem with the third party server is it's not permanent, or reliable. Since it would have to be one of my computers, and there's no way that could stay on __forever__.
Sane is offline   Reply With Quote
Old Nov 21st, 2005, 5:56 PM   #18
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
Then maybe you could set up an Application Gateway to allow certain ports at all times, and I think you can even choose to have it password protected. This should defentily work and allow your program to work with full functionallity
zorin is offline   Reply With Quote
Old Nov 21st, 2005, 6:05 PM   #19
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by Sane
The problem with the third party server is it's not permanent, or reliable. Since it would have to be one of my computers, and there's no way that could stay on __forever__.
Well, it could be any computer that has the service running... that's quite a few, if this thing takes off...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC