×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

problem connecting to WWW over lan

problem connecting to WWW over lan

problem connecting to WWW over lan

(OP)
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

RE: problem connecting to WWW over lan

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...

  • please give feedback on what works / what doesn't
  • need some help? how to get a better answer: FAQ581-3339

RE: problem connecting to WWW over lan

(OP)
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

RE: problem connecting to WWW over lan

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...

  • please give feedback on what works / what doesn't
  • need some help? how to get a better answer: FAQ581-3339

RE: problem connecting to WWW over lan

(OP)
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 "enable non standard FTP port" 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

RE: problem connecting to WWW over lan

Don't worry with ticking the "non standard ftp port"

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...

  • please give feedback on what works / what doesn't
  • need some help? how to get a better answer: FAQ581-3339

RE: problem connecting to WWW over lan

(OP)
excellent. ill star u now, but i may be back with more questions later

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

RE: problem connecting to WWW over lan

(OP)
wow its been a while and ive only just got round to this today!

ok i tried setting the IP to my "server" 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 "servers" 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

RE: problem connecting to WWW over lan

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...

  • please give feedback on what works / what doesn't
  • need some help? how to get a better answer: FAQ581-3339

RE: problem connecting to WWW over lan

(OP)
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

RE: problem connecting to WWW over lan

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...

  • please give feedback on what works / what doesn't
  • need some help? how to get a better answer: FAQ581-3339

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close