STUN server ipaddress and ports

Hi This is Ramesh i have downloaded the STUN server source code.
while running iam getting the following exception.how i can use the stun server for streaming server.
the stun server taking two ips and two ports any one knows which ips and ports i need to use.
iam developing a video conferencing application so that iam trying to use stun as a streaming server bez it will under NAT and Firewall also.
D:\project\jstun\src>java de.javawi.jstun.test.demo.StunServer 42050 192.168.0.11 42052 192.168.0.33
java.net.BindException: Cannot assign requested address: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at de.javawi.jstun.test.demo.StunServer.<init>(StunServer.java:46)
at de.javawi.jstun.test.demo.StunServer.main(StunServer.java:241)
i have tried with public ip also like 121.246.235.202 with this my server is running.
please give me a valid solution how to use stun server as a streaming server.
or
in order to transmit video over internet what should i do.
if u have any code please send me.

mmm it's a port mistake... try to check if the port number you wanna use is free on your system.
the bind operation is when an application try to put a socket in listening on the port u specified. this means that if the port is busy or dedicated to another process a bind exception is gonna ti be rise.
try to change the port number.
do few tests disabling system firewall or giving enough right to the application.
have fun ^^

Similar Messages

  • How to determine the Message Server ipaddress and Port Num

    Hi All,
    I installed SAPR/3 4.7EE on windows with Local Installtion on windows and the SystemNumber is 00.
    I am developing one SAP Load Balancing System Object in the Netweaver Portals,at the time of creating it is asking the values of Message Server IP addess and the Port number.
    Can i give the same ipaddress of SAP R/3 server as Message Server Ip or its different? If it is different, How can we determine the Message Server IP addess and the Port number?
    Regds
    Phanikumar

    Hi Pahani,
    Message server ip is nothing but your server IP if it is stand alone and port is 3600.
    if you want to check the info got to tcode SMMS>GOTO tab select PARAMETERS>display.it will show the info.
    cheers
    Shyam.

  • How to get server hostname and port from web form

    Hi All,
    I need to find out server hostname and port number
    from 9i form.
    That is if the form was called via:
    http://myserver.com:1234/f90servlet?form=test,
    i would like to call some
    GET_XXX_PROPERTY(SERVER_HOSTNAME) that would return
    myserver.com
    and
    GET_XXX_PROPERTY(SERVER_PORT) that would return
    1234
    or alternatively
    GET_XXX_PROPERTY(SERVER_URL) that would return
    complete URL, so that i can parse it myself.
    Does anything like this exist? If not,would be
    possible to get that information from any Java
    function via java importer?
    BR,
    Robert
    BR,
    Robert

    Robert,
    I'd add the code as a Java Bean in Forms and get this information from the Forms request URL.
    Add the following bean to a Canvas and make it a size of 1x1 pixel so taht it appears hidden
    import java.applet.Applet;
    import java.net.URL;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class FrmRequestInfo extends VBean
    public static final ID pGetPort = ID.registerProperty("GET_PORT");
    public static final ID pGetHost = ID.registerProperty("GET_HOST");
    public static final ID pGetProtocol = ID.registerProperty("GET_PROTOCOL");
    private String _host;
    private String _port;
    private String _protocol;
    private URL FormsURL;
    Applet m_applet;
    /*Forms settings*/
    IHandler m_handler;
    public FrmRequestInfo()
    public final void init (IHandler handler)
    super.init(handler);
    m_handler = handler;
    // get the forms applet handler
    m_applet = m_handler.getApplet();
    // initialize cookie domain to the same domain that runs Forms
    // Services
    FormsURL = m_applet.getDocumentBase();
    _host = FormsURL.getHost();
    _port = new Integer(FormsURL.getPort()).toString();
    _protocol = FormsURL.getProtocol();
    public Object getProperty(ID p0)
    if (p0 == pGetHost)
    return _host;
    else if (p0 == pGetPort)
    return _port;
    else if (p0 == pGetProtocol)
    return _protocol;
    else
    return super.getProperty(p0);
    To get the port number you call
    VarcharVariable_Port := get_custom_property('beanblock.beanname',1,'GET_PORT');
    for the hostname
    VarcharVariable_Host:= get_custom_property('beanblock.beanname',1,'GET_HOST');
    Frank
    Ps.: just wrote the bean on the fly, without testing - but I am positive that it works as similar functionality works for me in other beans.

  • How to get server name and port of OSB server in a proxy service ?

    I need to get the server name and port of the OSB server inside a proxy service. How can I get this?

    You may use java callout for this purpose -
    How to get ServerName and ApplicationName in OSB (ALSB) ?
    Regards,
    Anuj

  • Application server name and port number

    Hi
    Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
    Can anyone guide me please.
    Thanks in advance
    geethu

    application server name and port number

  • SDK : how to get the server adress and port ?

    Almost everything is in the title, I'm look for code to get the server URL and port where the ME is running ;o)
    There should be some standard API I guess.
    Thanks
    Regards

    Hi,
    In the code that I write I usually have access to the HTTP Request Object.
    String serverName = request.getServerName();
    String serverPort = request.getServerPort();
    Then I just do a compare on the returned value to see if I am on our Test or Production server.
    if(request.getServerName().indexOf("prodservername") >= 0)
      // PRODUCTION CODE HERE
    else
      // TEST CODE HERE
    Hope this helps,
    Mike

  • How to read the J2EE server hostname and port programmatically

    Is there any API to read the J2EE server host and port programmatically? I am looking for the hostname where the components are deployed so that I can append the wsdl path to the server and create an URL.

    Hi Larry,
    there is a standard J2EE Servlet API  for your case.
    In a servlet or jsp file you can get the host and prot from the request object.
    For example in a JSP file :
    request.getScheme();
      request.getServerName()
        request.getServerPort()
    You can check the whole API here :
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getServerName()
    Bets Regards
    Bojidar

  • Determining Message Server Host and Port information

    Hi,
    I am working on the NWDS creating a Java WD application and I was told which Netweaver system I should work on but I was not told the Message Server Host  information neither the Port information. I ran transaction SM51 (right click->details)in the Netweaver system but the information it is not working. Even though I can telnet this server port if I go to the J2EE Engine window within the NWDS I do not see the green light. I just see "N/A". I also tried to deploy my application but I keep getting this message: "Cannot determine sdm host (is empty). Please configure your engine/sdm correctly".
    Please advice,
    Diego.

    Hi Diego,
    in order to see Message Server Host information and Port information go to SAP J2EE Engine start page: e.g. http://system-name:57100/index.html (use administrator pws).
    Then click on System Information, here on the top you can read the Message Server Host and Port.
    Hope this help you.
    Bye,
    Vito

  • How to Know Oracle server id and port

    Dear all
    I try to run oracle report in jdeveloper
    i make the java files that calling the report as from i found in the internet as follow
    OracleReportBean reportBean =
    new OracleReportBean(server id, port, null);
    reportBean.setReportServerParam(OracleReportBean.RS_PARAM_DESTYPE,"cashe");// which will be one of the [cashe - file - mail - printer]
    reportBean.setReportServerParam(OracleReportBean.RS_PARAM_DESFORMAT,"PDF"); // Which will be onr of the [HTML - HTML CSS - PDF - SPREADSHEET- RTF].
    reportBean.setReportParameter("xxx", "ssss");
    reportBean.setReportParameter("kkkk", "uu");
    String url = reportBean.getReportServerURL();
    reportBean.openUrlInNewWindow(url);
    But i do not know what is the server id and port
    and how to specify the report name in the code.
    Please help me in this issue.
    Best Regards;

    I think that the serverid and the port is the ip of your report server and the port. (default 7779)
    see this post http://sameh-nassar.blogspot.com/2010/07/call-oracle-reports-from-your-adf.html
    so I can see, the name of the report is indicated via parameter
            //launch report
            testBean.setReportServerParam(OracleReportBean.RS_PARAM_REPORT, "name_report.rdf");
            testBean.setReportServerParam(OracleReportBean.RS_PARAM_ORIENTATION, OracleReportBean.ORIENTATION_PORTRAIT);
            testBean.setReportServerParam(OracleReportBean.RS_PARAM_DESFORMAT, OracleReportBean.DESFORMAT_PDF);

  • How to get Server Name and port. Urgent.....

    Hi,
    Please let me know how can i get the server name and port without using request object.
    I am getting it :- request.getServerName();
    But, pl. let me know how can I get it without using this request object.
    Waiting for reply..

    I don't know of any way to trivially access that, but why do you need to do this? If you need access to that information in a method that can't see your HttpServletRequest, then perhaps your architecture has a flaw, and you'll be better off in the long run restructuring it.

  • Retriving server IP and port from webservice context

    Hello
    In a JSP page its possible to do this:
    request.getServerName()
    request.getServerPort()
    In order to retrieve the server IP and port.
    How is this done in a webservice context?
    Oliver Billing
    DIF

    No. The way to get that information is to go to the database administrator and ask.

  • Host/server name and port

    Hi,
    is there like session/repository variable that holds the server/host name and port? i would like to get these values programmatically.
    thanks.

    In my humble opinion do not see any use in setting up these details on variables. The fact that these could be used only after logging on, which will obviously need these details manually. If you require it for tracking purpose, You could do it manually, as they are going to be static at least for that session.

  • Get report server name and port name

    J want to know if it is possibile to obtain from a form the name of the report server and the port on work.
    Infact if i use two different application server the nae of the report server change and in the script that call the report server is necesseraly using the name of the report server.
    Thank's

    if your cases are that the dev, test, production servers have different servers and databases, then you may create a table e.g., report_server_profiles(serv_name varchar2(100),ports number), it contains one record ONLY in each server's database, then in your form code only have same code that works for three of them.
    If you have two report servers, but have one database, then you may add a flag column in above table and depends on users group to set that report flag.

  • Configuring server name and port number through action links - obiee11g

    Is it possible to configure host name and port when using action links ?
    Say some session variables hold these values. Is there any way to use these values ?
    Thanks
    SM

    Any pointers ?

  • Where is the server address and port stored that is configured in NI License Manager?

    Hi,
      I am trying to configure a silent installation of LabView.  I have tried the specfile and put in the license code etc..  I cannot see a place there to configure a license server address.
    I've run NI License Manager on a reference PC and have configured one there but how can I deploy that config to a number of PCs?  How is it stored and where is it stored?
    thanks
    Paul

    Last question (I promise)
    If I dont have a volume license how do I determine what my 'package' or 'family' is?
    Package
    Syntax: nilmUtil.exe -activate "packagename version"
    Example: nilmUtil.exe -activate "LabVIEW_PDSM_PKG 8.0500" 
    Family
    Syntax: nilmUtil.exe -family "family"
    Example: nilmUtil.exe -family "LabVIEW_ADE_080600" 

Maybe you are looking for

  • How do i get kids games to be available on there user login

    i got 2 games for my 3 year old -go diego and dora. when i log in under my sons name i cannot play the games. I can only play them under my log in. he has done a heck of a job messing up my screen and i would like him to only be able to play on his l

  • Apple TV HD Rental Streaming Problem

    I wanted to create this topic to ask if others are running into the same issues I am with streaming rented HD movies. I go to play the rented HD movie and am transferred to a screen that says "Loading...." for about a minute or two. Then, that messag

  • Problem in creating iview programmatically

    Dear EP friends, I am trying to create an iView programmatically following the EP help doc. At the code below IiViews iViewSrv =(IiViews) PortalRuntime.getRuntimeResources().getService(IiViews.KEY); i am getting errror recorded at log as com.sapporta

  • Startx shows twm but is frozen

    I thought I'd come here before my tinkering just makes things worse (which I'm afraid I may have already done:|) When I run "starx" twm loads, but it is totally frozen.  Mouse won't move, ctrl-shift-backspace doesn't exit, alt-Fkey doesn't open a new

  • Wlse 2.9 alarm e-mail timestamps

    Hi, I'm evaluating a wlse 2.9 and have found that, when I'm emailed due to a threshold violation etc, the timestamp on the e-mail is in GMT. Is there a way to change this to a local time zone? .....thx.........J