Skip to main content
Participant
February 5, 2007
Question

Config for NAT

  • February 5, 2007
  • 1 reply
  • 246 views
Hi all-
Maybe some out there can help me? My WAN people say "Your application needs to be configured to send a DNS name to the clients instead of the internal ip address"

My intrernal rmtp string uses the DNS name.

x_nc.connect(rmtp://servername:1935/application)

Is this right? Thanks.
    This topic has been closed for replies.

    1 reply

    Known Participant
    February 11, 2007
    DNS of users computers must know server name that return your server IP so you have 2 methods to do that

    Have Domain name that return same IP when you ping the domain .
    Or
    all computers on this wan have to have same DNS for your server

    in your server you have to modify your hosts file
    you will find it
    C:\WINDOWS\system32\drivers\etc\

    open the file with notepad


    quote:

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost



    Now write a new line [for example]

    9.4.8.122 servername


    Thats it , i wish thats help you