Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem connecting to WWW over lan 1

Status
Not open for further replies.

ADoozer

Programmer
Dec 15, 2002
3,487
AU
ok this is a repost of thread222-633591 so it is appreciated (for consistency) if u post there

my problem: i have a sample application (from the microsoft directX8 SDK) which uses the directX object to stream audio between PCs, it works brilliantly on my home lan (4 PCs) however if i try and connect to a friend over the web i have to put my PC in the DMZ (not something im comfortable with).

is it possible to have my PC host from behind a firewall on the router without having to go in the DMZ, i know the IP, Gateway, Subnet Msk, everything!! (i know it must be possible somehow because my pc can connect to gamespy, without trouble!

im thinking it has something to do with NAT and ports etc, but my networking knowledge is very limited!

any help appreciated!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
You're right, it's to do with NAT and ports - you need to set your Router to forward the ports that the audio streaming software is using (these will be forwarded to the IP address of the PC you're using to serve the audio).

You should be able to find the relevant port numbers in your app documentation.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
ok. seems reasonable, however i have several options and im not sure where to go!

i have a belkin 4 port cable/DSL gateway router (F5D5230-4)

option 1 is the DMZ
option 2 is to do with virtual server settings?!?
option 3 is to disable NAT?!?

i dont see any options to forward the ports though!

do u have any more pointers?

thnx

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
yep, virtual server is another term for port forwarding. you still specify the port number and IP address.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
ok.. (sorry to keep probing, id trial and error but noone is online for me to test it)

in the virtual server page i have several options!

a tick box followed by &quot;enable non standard FTP port&quot; followed by a text box!

under that are 10 entries in the following format

| Private IP | Private Port | Type | Public Port
1. | XXX.XXX.X.___ | ____________ | TCP or UDP | ___________
2. | etc etc

so the questions. do i put the IP of the PC that i want to be the server in the private IP or create an unused IP secondly do i need to check the non standard FTP box to use say port 12345 and finally what is the difference between private port and public port?!?

i would trial and error but i have no one in the outside world to test it with me at the moment!

thnx in advance

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Don't worry with ticking the &quot;non standard ftp port&quot;

Virtual server will take a connection to your WAN IP address on port x (public) and forward it to the specified IP address on port y (private).

Generally, you'll specify the same public & private port (80 = HTTP, 21 = FTP, etc) and you give the (internal LAN) IP address of your server.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
excellent. ill star u now, but i may be back with more questions later [lol]

thnx

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
wow its been a while and ive only just got round to this today!

ok i tried setting the IP to my &quot;server&quot; machine (in the virtual server bit of the router) and then i set the private and public ports to 9999. however it still doesnt work?!?

Q should i be using the wan address with the port number 9999 or the &quot;servers&quot; ip with the port number?

Q am i ok to use 9999 for both the private and local port?

thnx for any continued help!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Hi again!

You've mentioned port 9999 - is this the only port the application uses? You need to forward each and every port that your application is using.

If your friend needs to specify an IP address, use your WAN IP address and whatever port you specify as the public port (ideally, make this the same port as you're using internally: e.g. both on 9999).

It makes sense to keep the public & private ports the same.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
hi cheers... will try it tomorrow...

port 9999 is just a port number i made up!! (for testing purposes)

i dont know what port the app uses... i think its supposed to be 2302 (and in thread222-635040 VB5 seems to back me up)

i thought though that if i put my server in the virtual server setting though it would would work.... (like i said, sorrry my network knowledge is slim)

i know that if i put my server in the dmz that it works..... as far as i know it (the app) scans all ports on the specified IP?!?!?

apologies... im not a network guy!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
The application will have a predetermioned port (or port range). HTTP uses port 80, FTP uses port 21, etc.

A DMZ effectively forwards ALL PORTS to the specified server.
Virtual Server forward's the SPECIFIED PORTS to the specified server. This is more secure because only the ports that the application requires are forwarded; all other ports are closed.

You'll need to check the FAQ/documentation for your app to find out what port(s) it needs.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top