Specify the port in the client in a TCP connection

Hi,
I am programming an application using TCP sockets. I have programmed a server whith a SocketServer(port) and is waiting for client's requests (the server is a public host in the Internet). The client connect to the server by means of the method:
Socket s = new Socket(host, port);
That works correctly, but now I want to specify the port in the client. The client's PC in a machine on the Internet and it has a public IP. I tried to use the method:
Socket(String host, int port, InetAddress localAddr, int localPort)
where localAddr is the local IP of the client' PC (because I cannot know the public IP).
However, it doesn't work this method and the client cannot connect to the server. The problem is that I want to specify the port in the client in the socket TCP connection when I try to connect to the host.
How can I resolve this problem?
Thaks

I want to specify the port in the clientWhy?

Similar Messages

  • App-V 5 Full Infrastructure Apps take long time to stream to the client

    Hi was wondering if anyone has the same issue as i am or knows a fix for this, below is my problem and the troubleshooting i have done.
    Overview of problem
    App-V 5 apps delivered via App-V 5 full infrastructure take a long time to stream to the client and this means the user has to wait if they try and run an application before it has streamed to the client. Users sometimes have to
    wait 2 or 3 minutes for an application to stream and this is about 40 times slower than basic SMB and HTTP transfer tests show the system is capable of (see performance results below).
    App-V 4.6 apps delivered via App-V 4.6 full infrastructure and HTTP streaming are fine.
    Overview of environment
    App-V 5.0 SP1 Full Infrastructure.
    App-V servers are running Server 2012 on Hyper-V 3 or ESX 5.1 with 2 x vCPU and 4GB RAM.
    SQL servers are a SQL 2012 cluster.
    Separate servers for SQL, management, publishing, content and reporting.
    Management, Publishing and Content servers have two servers per role and NLB to provide load balancing. So 7 servers (2 x Man, 2 x Pub, 2 x Content, 1 x Reporting)
    Two further sites with 2 x Pub and 2 x Content each. All publishing servers pointed at the load balance address for management.
    Content delivered via HTTP
    Clients are physical desktops and laptops running Windows 7 SP1 x86 and Windows 8 x86
    App-V client is 5.0SP1
    Clients are pointed at their nearest publishing server NLB via a script which looks up the client IP address and uses PowerShell to configure the publishing server
    Content is streamed from the nearest content server NLB by setting the PackageSourceRoot to the nearest content NLB (via the same PowerShell script above).
    App-V apps delivered per-user via AD group. One AD group per application. Approximately 200 App-V apps published so far - will eventually reach 400 as we sequence more. About 9000 users.
    Analysis performed so far
    Servers not heavily loaded. CPU averages 5%. Lots of RAM free. Very low disk IO. Problem also occurs out-of-hours so we are 99.9% certain that server resources are not a cause.
    Streaming performance is the same from all 6 content servers and all 3 NLB addresses (tested by changing the value of PackageSourceRoot). Wireshark used to confirm packages are really streaming from the correct location, enforcing
    our belief that the problem isn't at the server end (unless all 6 servers are affected).
    Streaming via both HTTP and SMB2.1 is approximately the same (tested by changing the value of PackageSourceRoot between http://xxxx and \\server\AppVContent).
    Wireshark used to confirm we really are using the protocol we think we are using.
    All clients exhibit the same behaviour. Issue reported by many users. 5 test PCs chosen at random at all 3 sites confirmed to have the slow streaming problem.
    Slow streaming from both Hyper-V and VMware ESX servers.
    Client not heavily loaded.
    Affects all App-V apps although it obviously affects the larger ones more.
    All App-V apps have a Feature Block 1 setup.
    If we copy the ".appv" file from the server to the client via either HTTP or SMB then it's reasonably quick (up to 480Mb/s). So we don't believe the network or servers are at fault. For example:
    We can copy a 149MB .appv file via SMB from the content server to the client in 5 seconds.
    We copy HTTP download the .appv file from the content server using IE on the client in 5 seconds.
    But if you ask the App-V 5 client to fully download the sequence then it takes 2 - 3 minutes.
    The App-V 4.6 client takes about 8 - 10 seconds to fully download a similar sized application.
    App-V 5 publishing works fine - when a new user logs on they get their list of application straight away, it's just the streaming which is slow.
    Once the App-V app has streamed locally it runs fine and with a decent performance.
    Looking at a Wireshark trace of the streaming you can see that the slow performance is due to the transfer stopping and starting a lot. You only notice this when you zoom into the performance graph a fair bit.
    Each time the HTTP server stops sending traffic, it doesn't start again until the client sends a "TCP Window update". Each "stop" is of a different length, but just taking a few from the middle I get 0.06s, 0.11s,
    0.13s wasted etc.
    I can see that it's the client stopping the transfer by reducing its advertised TCP Window Size. I'll provide an example:
    Server sends 9 x 1514 bytes. Client responds with an ACK and a Window size of 54016 bytes (256x211)
    Server sends 11 x 1514 bytes. Client responds with an ACK and a Window size of 37888 bytes (256x148)
    Server sends 10 x 1514 bytes. Client responds with an ACK and a Window size of 23296 bytes (256x91)
    Server sends 15 x 1514 bytes. Client responds with an ACK and a Window size of 1280 bytes (5 x 256)
    Server stops sending (I'm guessing because the client advertised Window size was less than a single packet's worth of bytes)
    <0.1 seconds passes>
    Client sends a "TCP Window Update" re-advertising a TCP window size of 65536 (256x256).
    Server starts transmitting again
    So the way I see this is that the App-V 5 client is controlling the transfer speed by utilising TCP Window flow control. The trace was taken at the client end so there's no room for anything on the network to be fiddling with flow
    control (and we've confirmed there are no traffic shapers in the loop).
    We've also tried streaming directly from the local client by copying some App-V 5 apps down to the client, creating a SMB share on the client and changing PackageSourceRoot to \\localhost\AppVContent (i.e. so we are streaming directly
    from the client to the client - to remove the network from the equation) and there is only an improvement of 5 to 10 seconds. So we know it's nothing to do with the network or the servers.
    We've tried turning off TCP auto-tuning on the client with:
    netsh interface tcp set global autotuninglevel=disabled
    and turning off TCP chimney offloading (which is off anyway because the NIC doesn't support it and Netstat -t output shows "InHost" for offload state for all connections) with:
    netsh int tcp set global chimney=disabled
    and nothing has improved.
    So we've now focussed on the extraction of the .appv (ZIP) file on the client.
    Using Windows Explorer it takes 75 seconds to extract the ZIP file
    Using 7ZIP it takes 9 seconds to extract the ZIP file
    Yeah we've always known that the Explorer ZIP engine is terrible. That's why we use 7ZIP or WinRAR on our clients.
    So we've started to wonder if the problem with the slow App-V 5 streaming is because the client is downloading the .appv file and extracting it as it goes along in a single thread. If the App-V 5 client is using the same terrible
    ZIP engine that Explorer does then that would explain the slow performance. The "download" appears to take a long time because the client is using TCP flow control to slow the transfer since it's extracting the .appv file using a very slow ZIP engine
    and it's all in a single thread.

    Guys,
    Just wanted to give you a brief update basically close this thread as Answered.
    We had submitted 4 App-V 5 Bugs to Microsoft and these were reproducible and an explanation was given on work around to them. Microsoft
    sent down a App-v developer to have a look at our problems. They said they will try and include the Bug fixes in SP2 which should be out in a few weeks or they will definitely be included in SP3.
    In regards to the slow streaming it all came down to the Disk IO.
    We found that you could simply enable "Turn off
    Windows write-cache buffer flushing on the device", then start streaming the app and then disable "Turn
    off Windows write-cache buffer flushing on the device" immediately after
    (we don't want to leave it on) and that basically fixed the issue.
    But a normal user would not have permissions to do
    this, so a code was written to enable and disable this option.
    Apology for not going in detail, like my opening thread, its very late. 
    but if you would like a detailed analysis please message me.
    I would like to Thank the Talented Consultant who designed and implemented are App-V infrastructure who found the bugs and created all
    the work around and who also emailed the detailed analysis of the problems to Microsoft that got them interested.
    Simon Bond from Ultima Business Solutions.
    Thank you

  • How to prevent a TCP connection being closed when the VI that opened it finishes.

    Hello everyone.
    I am developing an application based around servers and clients communicating over TCP in LabVIEW 2012.
    When the server/client opens a TCP connection ,it launches an asynchronosly running "connection handler", to which it passes the connection reference which then takes over all the communcation. This all works fine.
    However - I have a situation where a client's connection handler can be informed of another "new" server. I would like it to open the connection (to see if it is still valid) and then pass this connection reference back to the client's main code to spawn a new connection handler. This prevents me locking up the Client's main code with a long-ish timeout if the "new" server is not actually accepting connections.
    The issue is that if the connection handler that opened up the connection to the "new" server is stopped, then it appears to destroy the reference that it opened. This means that the other connection handler that was merrily communcating with the "new" server has its TCP communciations closed (I get an Error code 1 on a write).
    I have created an example to demonstrate the issue which should be used as follows:
    1. Run server.vi - it will listen for a connection on the port specifed on its BD.
    2. Run CH Launcher.vi - it will open a connection to the server and pass the TCP reference to an instance of Connection Handler.vi which it launches.
    3. The Connection Handler should send data to the Server
    4. Stop the CH Launcher.vi
    5. The Connection Handler.vi will error.
    Any suggestions would be much appreciated.
    Cheers
    John
    Solved!
    Go to Solution.
    Attachments:
    TCP Test.zip ‏35 KB

    John_Neutron escreveu:
    In my case I have changes the part of the code that opens the TCP connection to a VI that has the same lifetime as the main VI so that any connections that have been opened will only be closed automatically when the main VI stops.
    And what are the effects? You are still facing the same problem or closing the connection only when the whole applicaton stops solved your problem?
    Regards
    Mondoni

  • How to limit the number of TCP connections beeing used concurrently while a page is beeing loaded?

    We manufacture industrial small-footprint control modules with embedded web server. The resources of these modules are very limited, especially in RAM. We have problem, that FF opens 15 parallel TCP connections while loading a web page (main html page first, then all icons simultaneously). We can not handle such behavior because of lack of RAM memory needed for TCP buffers.
    Question is how to limit the number of concurrent TCP connections the browser will use? We need to do it somehow directly from the page, we can not push our customers to change the general settings of their browsers (they would not understand such things anyway).
    Do anyone have any suggestion?

    Sorry, one other thought. Many web designers now combine all icons into a single image and use CSS to clip the image so that only the desired portion is displayed. This minimizes the number of required connections and increases the probability that the image can be retrieved from cache.
    More info:
    * [http://www.w3schools.com/css/css_image_sprites.asp CSS Image Sprites - W3Schools]
    * [http://www.alistapart.com/articles/sprites/ A List Apart: Articles: CSS Sprites: Image Slicing’s Kiss of Death]
    * [http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/ The Mystery Of CSS Sprites: Techniques, Tools And Tutorials | Smashing Coding]
    No idea whether this is practical for your application.

  • The TFO accelerator is overloaded (connection limit) and MAPI problems

    Hi All!
    Problem description:
    When MAPI acceleration (exchange/outlook) is Active in our WAAS environment, the remote site users randomly lose connection to the Exchange server (on hub site), if I disable the MAPI acceleration everything works ok.  so right now we are running with MAPI accelearation Disabled
    I can see that we often get max_conn_reject The TFO accelerator is overloaded (connection limit), we haven't done any adjustments to the default configuration. 
    The environment is one Hubsite with two remote sites.
    [Hub Site] 34mbit
    HW=OE674
    SW=4.1.5
    inline
    Enterprise Lic
    [Remote Site1] 4 mbit
    HW=OE474
    SW=4.1.5
    inline
    Enterprise Lic
    [Remote Site2] 4mbit
    HW=OE474
    SW=4.1.5
    inline
    Enterprise Lic
    So the question is how to solve this?!                                

    I had a feeling that you might have alot of computer remotely.
    One of the main factors in sizing a WAAS soluiton is to keep in mind the number of TCP connections that a single WAE can optimize.
    We limit the device on optimized TCP connections.After you hit the limit the device will go into the overload state that you mentioned.
    274 - 200 connections
    474 - 400 connections.
    Typically from a sizing a single workstation would be sized from 7-10 TCP connections.
    The 2nd factor in sizing is bandwidth - WAAS doesn't limit bandwidth but this is recommended for the CPU throughput.
    274 - 2 Megs
    474 - 4 Megs
    The 3rd factor is redundancy,. HA, etc.
    Thanks,
    Eric
         remember if this answrs your questions, please mark as answered and with a 5.

  • Wired port cannot establish TCP connections

    I have come across an error that I have so far been unable to solve via google/searching forums.
    From time to time, the wired port loses the capability to establish TCP connections. I can ping fine, I can resolve names fine indicating that at least UDP 53 is working. It's impossible to complete a three way handshake for any TCP connection, be it SSH, HTTP, FTP or anything else. This happens randomly after a network connection has been working fine for days. The Internet Connection Wizard claims everything is peachy as it probably just performs a ping to some site.
    A reboot does not fix the problem - what does fix it is unplugging the cable, changing to wireless and associating with a network, opening a connection, then shutting down AirPort again and plugging the cable back in. Just replugging without establishing a TCP connection via AirPort does not work.
    Is there anything I am missing here? Should I be contacting an Apple Store to talk about repairs/replacements?
    Thanks for your time and consideration, if there's any other information needed to make light of the problem, I will post it as soon as I see the request. Unfortunately, I cannot produce the problem at will and have so far neglected running a traffic sniffer to look at exactly what is happening on a packet level - tho "telnet server 80" times out when "ping server" works fine.

    Well, I have gotten the FMS on Windows to work via my basic client app (via localhost in the NetConnection call). Taking the same SWF and specifying the external IP of the Windows machine doesnt work.
    So I am kind of back to square one.
    I made sure that the default Adaptor is bound to any IP (using ":1935,80" in the default Adaptor.xml HostPort tag). So FMS should be bound to all network interfaces.
    Just to clarify: FMS is running in "development" mode. Does that mode prevent external connections?

  • Coherence Extend remote address port in TCP Connection

    Hi,
    From the log below, I see remote address port is picked some random port(48552). (currently i disabled the firewall), If i enable the firewall it could be an issue, is there any way i can specify the remote ports that tcp connection use?
    2011-02-24 13:18:18.076/1280.207 Oracle Coherence GE 3.6.0.1 <D6> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=13): Opened: TcpConnection(Id=0x0000012E56A3CA1B0A1F96B688F7EEBCEDA2AA9397203393CF480379B3963D86, Open=true, LocalAddress=10.31.150.182:9099, RemoteAddress=10.31.150.182:48552)
    One more question,
    I have two proxy servers, is it possible to configure the client to make two connection (redundant) one for first proxy and another for second proxy. is it make sense?
    Thanks
    Prab
    Edited by: 833796 on Feb 24, 2011 2:35 AM

    Hi Prab
    The random port is what normally is called an ephemeral port for the client and is usually not a problem for firewalls since this is expected behavior. If you want to control the client port you can do this by adding the <local-address> to the tcp-initiator element.
    As for the second question, it doesn't quite work to do as you suggest. The proxy contains state for the client, as this is not replicable between the proxies one cannot continue where the other one left off.
    Thanks
    /Charlie

  • Can we send a tcp/ip message from a specific port to the client

    Hi All,
    Iam currently trying to send a tcp/ip message to a remote machine on a specific destination port. For each tcp/ip message that iam sending iam able to figure out that the source port varies each time. So I wanted to know if it is possible to maintain a source
    port for sending a tcp/ip message just like a destination Port. You can see my code below for reference:
     TcpClient client = new TcpClient();          
                client.Connect("xxx.xxx.xx.xx", 2024);
                NetworkStream clientStream = client.GetStream();
                ulong refno = GetSessionID();
                DateTime dt = DateTime.Now;
                string str = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + " " + dt.Hour.ToString() + ":" + dt.Minute.ToString() +
    ":00";
                ASCIIEncoding encoder = new ASCIIEncoding();
                string Input2 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX>";
                string Input3 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX><CHECKSUM>";
                int length = Input2.Length;
                string hexValue = Input2.Length.ToString("X");
                string hexValue2 = length.ToString("X");
             //   string Input = "\x02 Inquire\x1F REF=203.163.253.55\x1F RQN=" + refno.ToString() + "\x1F DTE=" + str + "\x1F ACI=5274\x1F ACE=C\x1F ACS=A\x1F \x3 \\x" + hexValue2;
                string Input = "02Inquire1FREF=203.163.253.551FRQN=" + refno.ToString() + "1FDTE=" + str + "1FACI=52741FACE=C1FACS=A1F3" + hexValue2;
                byte[] buffer = encoder.GetBytes(Input);
                clientStream.Write(buffer, 0, buffer.Length);
                clientStream.Flush();
    ram

    Hi ram,
    The TcpClient class has a constructor that receives an IPEndPoint instance, this is the local EndPoint.
    The IPEndPoint consists of two parts, the IP address and the port to use. you can specify the local port with this parameter.
    IPAddress ipAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
    int port=9999;
    IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
    TcpClient tcpClientA = new TcpClient (ipLocalEndPoint);
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • E proxy Please specify secure port in the properties.

    Hi,
              I have a cluster of two weblogic servers as 192.168.80.144 and
              192.168.80.147 both are in NT. I have installed weblogic in both m/c in
              same folder. Do I need to put the same port number ( what port number
              443 ? or anyone ? ) in [weblogic]/weblogic.properties and
              [weblogic]/[mycluster]/weblogic.properties. I have tried putting 443 and
              7001. Then what ip-address will be used to put the request ? I tried to
              request on mycluster:443 and mycluster:7001 where mycluster is the name
              of the cluster in both m/c and there is an entry in hosts file of NT for
              192.168.80.144 and 192.168.80.147 as mycluster.
              After starting the server it says
              Tue May 22 10:00:54 CEST 2001:<I> <Cluster> Adding server
              7537245419133606340S192.168.80.147:[443,443,7002,7002,443,-1]
              to cluster view
              Tue May 22 10:00:58 CEST 2001:<I> <NT Performance Pack> Allocating: '2'
              NT reader threads
              Tue May 22 10:01:05 CEST 2001:<I> <WebLogicServer> WebLogic Server
              started
              Tue May 22 10:01:57 CEST 2001:<I> <ServletContext-General> *.html: init
              When I send the request thru browser it says following:
              Tue May 22 10:01:57 CEST 2001:<E> <proxy> Please specify secure port in
              the properties. Using default ports 7001/7002 Se
              e release notes for more info
              Tue May 22 10:01:57 CEST 2001:<E> <proxy> Please specify secure port in
              the properties. Using default ports 7001/7002 Se
              e release notes for more info
              Please suggest me what to do for running the cluster properly.
              Thanx in advance.
              Vinay Kumar
              Gauss Interprise AG Phone: +49-40-3250-1226
              Weidestrasse 120 A Mobile: +49-177-7906818
              D-22299 Hamburg mailto:[email protected]
              Germany web: http://www.gauss-interprise.com
              [att1.html]
              

    Clustering is a big topic that cannot be explained in one post. That was why I suggested the link for a complete explanation. The link does provide tons of information you need to setup a cluster.
              However, here are some pointers for your case as applicable to WebLogic 5.10 clustering (which is what you seem to be running).
              (1) Weblogic properties have the following precedence (properties defined in the first item in the following list override the same properties defined in the second item in the list and so on): command line properties, per-server property file, cluster-wide property file and finally global property file.
              If you installed Weblogic 5.10 under /weblogic and your cluster is called "mycluster" and your server is called "Server1" and you command line script is stored in a file called "startServer1.cmd" under /weblogic, then weblogic will read the properties in the following order (the latest read overrides the same properties from an earlier read):
              (a) /weblogic/weblogic.properties <-- global property file
              (b) /weblogic/mycluster/weblogic.properties <-- cluster-wide property file
              (c) /weblogic/mycluster/Server1/weblogic.properties <-- per-server property file
              (d) properties defined in startServer1.cmd <-- command line properties
              In your case, a good place to place the port number is in the cluster-wide property file (since all servers in the cluster should use the same port). Do not specify any ports in the per-server property file or in the command line properties in this case as they will override the port specified earlier.
              (2) In 5.10, you will typically have a bank of webservers (Apache, Netscape, IIS) in front of the cluster. Several configurations are possible. You can for instance have a hardware load-balancer in front of the webserver. You can then have the DNS serve up the external IP of the load-balancer. Alternatively, you can also do DNS round-robin among the webservers. Clients will then use the DNS name in the URL which will map to either the load-balancer or one of the webservers.
              Check this link out for details on architecture:
              http://www.weblogic.com/docs51/cluster/planning.html#1040272
              Giri
              "Vinay Kumar" <[email protected]> wrote in message news:[email protected]...
              Hi Giri,
              From this very link I got the idea to use weblogic cluster.
              So this is not of much help.
              Thanx.
              Giri Alwar wrote:
              Take a look at the following document: http://www.weblogic.com/docs51/cluster/index.html Giri
              "Vinay Kumar" <[email protected]> wrote in message news:[email protected]... Hi,
              I have a cluster of two weblogic servers as 192.168.80.144 and 192.168.80.147 both are in NT. I have installed weblogic in both m/c in same folder. Do I need to put the same port number ( what port number 443 ? or anyone ? ) in [weblogic]/weblogic.properties and [weblogic]/[mycluster]/weblogic.properties. I have tried putting 443 and 7001. Then what ip-address will be used to put the request ? I tried to request on mycluster:443 and mycluster:7001 where mycluster is the name of the cluster in both m/c and there is an entry in hosts file of NT for 192.168.80.144 and 192.168.80.147 as mycluster.
              After starting the server it says
              Tue May 22 10:00:54 CEST 2001:<I> <Cluster> Adding server 7537245419133606340S192.168.80.147:[443,443,7002,7002,443,-1]
              to cluster view
              Tue May 22 10:00:58 CEST 2001:<I> <NT Performance Pack> Allocating: '2' NT reader threads
              Tue May 22 10:01:05 CEST 2001:<I> <WebLogicServer> WebLogic Server started
              Tue May 22 10:01:57 CEST 2001:<I> <ServletContext-General> *.html: init
              When I send the request thru browser it says following:
              Tue May 22 10:01:57 CEST 2001:<E> <proxy> Please specify secure port in the properties. Using default ports 7001/7002 Se
              e release notes for more info
              Tue May 22 10:01:57 CEST 2001:<E> <proxy> Please specify secure port in the properties. Using default ports 7001/7002 Se
              e release notes for more info
              Please suggest me what to do for running the cluster properly.
              Thanx in advance.
              Vinay Kumar
              Gauss Interprise AG Phone: +49-40-3250-1226
              Weidestrasse 120 A Mobile: +49-177-7906818
              D-22299 Hamburg mailto:[email protected]
              Germany web: http://www.gauss-interprise.com
              Vinay Kumar
              Gauss Interprise AG Phone: +49-40-3250-1226
              Weidestrasse 120 A Mobile: +49-177-7906818
              D-22299 Hamburg mailto:[email protected]
              Germany web: http://www.gauss-interprise.com
              [att1.html]
              

  • Specify the port number to go through the firewall

    I noticed the ibm application server gives option to specify the listener port for EJB using this parameter -Dcom.ibm.CORBA.ListenerPort=8888 .
    Can I do the same thing for Sun Application Server?

    org.omg.CORBA.ORBInitialPort
    This is only for the initial connection. After the ejb container receives the call, it is going to communicate with the connecting client using random port number.

  • Can you specify the port for default services when installing OEG?

    Hi everyone,
    The default installation of OEG 11g uses 8090 port for management services, and 8080 for the virtualized services that you register in the gateway. After installation, you can change the ports by editing gateway's Profile Repository in Policy Studio. But is there a way to specify the port number before/during the installation?
    Thanks,
    Iris

    Hi -
    here are the steps to change the listening port (in 11.1.1.6)
    - Connect to OEG using Policy Studio
    - Click on "Edit Active Configuration"
    - Under "Services", find the default services, and you'll see a listener for port 8080 there. Right-click to edit this.
    - Change the port from 8080 to your desired port. Note that if you've installed the software and running it as a non-root user on Linux, then it will not have permission to bind to a low-number port (like port 80 for instance)
    - Now deploy your change (for 11.1.1.6 hit F6 or click on the "deploy" button which is towards the right of the toolbar in Policy Studio).
    - You may also choose to version your configuration at this point (click on "version" which is beside the "deploy" button and enter a comment about your version).
    Now verify that OEG is listening on your new port. You can see it bind to the new port by looking at the trace [Connect a browser to port 8090 on OEG, login as admin or another user who has rights to view the trace, then click on "Trace"].
    It's a usual practice to configure a new listener on SSL (e.g. on port 443) then to delete that pre-configured port 8080 listener, if you want to only receive traffic over SSL.

  • Smartview Error: "Cannot Connect to Provider. Make Sure It Is Running in the Specified Host/Port (503)

    I am having an issue retrieving on a SmartView grid running 11.1.2.2.309.01 and SmartView 11.1.2.2.102.I have a grid with three attribute dimension and, at first it was long running and gave me a netretry netinterval error. I shared with my administrator and, they gave me the registry updates to increase my timeout for my default browser. Now, I try to retrieve the same sheet and after approximately five minutes, I get the message, "Smartview Error: "Cannot Connect to Provider. Make Sure It Is Running in the Specified Host/Port (503)". I am not sure what this means. I can retrieve on other grids with one attribute dimension or a regular retrieve but, for some reason, I notice when I retrieve on multiple attribute dimensions, I am having this issue. I had this tested with others and, they are experiencing the same result. Any thoughts. Thanks in advance         

    The timeout was updated to 7 minutes but, the timeout on the APS was never updated. What happened was there was a 7,000 member dimension where attributes where being used to build a retrieve. The attributes were what was causing the issue. Not to say you should not use attributes. Ultimately, an alternate hierarchy in the 7,000 member dimension will  help but, I used other members to get the results I need. I just never saw the error message before and, did not see it in oracle support.. Thanks.

  • Error: "Cannot connect to the provider. Make sure it is running in the specified host/port. Error (12031)"

    Hi,
    EPM version: EPM 11.1.2.1
    When we are using Zoom In Level as All Levels and tring to drill down for dimention of HFM application we are getting below error.
    Error: "Cannot connect to the provider. Make sure it is running in the specified host/port. Error (12031)"
    As we found some solution from comunity , we have performed below workaround but still we are getting same error.
    ·              We have done the changes in mod_wl_ohs.conf file of OHS  with (WLIOTimeoutSecs 3600 and WLIOSocketTimeoutSecs 3600)
    ·              And then restarted OHS and  APS service but still we found same error.
    Could anyone please suggest ,where can we trace its log from web server and the solution for this issue?
         Thanks,
             D.N. Rana

    Hi,
    We have already performed the changes for APS in OHS as mentioned in the solution and the path also same as under OHS.
    Intially we were getting error for "to increase netRetryCould and NetRetryInterval"  as a solution we have added below 3  registry DWORD keys under  path
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    "KeepAliveTimeout"=dword:00180000                   (26 Minutes)
    "ReceiveTimeout"=dword:00dbba00                      (240 Minutes)
    "ServerInfoTimeout"=dword:00180000                  (26 Minutes)
    Above error resolved but then we received Error"12031"
    Now we have added above 3 DWORD keys under path HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    and now we are not getting the  error "12031".
    But here we are not getting how it(LB issue) resolved with above solution?
    Thanks,
    D.N.Rana

  • How do i specify the port form where i want to send the mails

    i have smtp server which by default has proxy at port 25.So i want to send the mails through some other port.So how can i specify the exact port in the bean(i am using a bean to send email) so that all the mails through that port.my machine is having public ip.so what i do is Properties prop = new Properties();
    prop.put("mail.smtp.host",hostname);but how do i specify the port name coz this sends the mail at port 25 by default.

    prop.put("mail.smtp.port",portnumber)

  • Windows 8.1 Client Side Caching - Is it possible to specify the location of the offline file cache?

    Hi,
    Is there any approved way to change the location of the offline files cache in Windows 8.1?  I'm asking before moving client systems from Windows 7 where a registry change was required - is this still the way to go?
    I believe that if the default user-profile directory is moved, this causes problems for updates to Windows 8/8.1 now, is the same true if you move CSC?
    Just a bit of background.  The systems I want to do this for have smallish SSD boot drives with a higher capacity spinning disk.  The machines are members of a domain with Folder Redirection setup.  I could setup group policies to disable
    caching of some of the larger directories or even disable CSC entirely on the machines which have an SSD boot drive, but would prefer not to do so.
    Thanks in advance.

    Hi,
    According to your descryption, In windows 7, the tool is migwiz.exe, namely the Windows Easy Transfer, you can modify the registry in the way listed in the post below:
    http://social.technet.microsoft.com/Forums/en-US/bbf5890c-b3d7-4b38-83d8-d9a5e025fb2b/how-to-move-clientside-caching-to-a-new-location?forum=w7itproinstall
    In Windows 8, Windows easy transfer is also a built in tool to migrate user profiles and user settings, but as for the offline transfer, I suggest to use the USMT for your situation.
    Because with USMT you can specify the folder that you want to migrate the files to, by using an offline.xml you can set the path just as the sample listed below:
    <offline>
         <winDir>
              <path>C:\Windows</path>
              <path>D:\Windows</path>
              <path>E:\</path>
         </winDir>
         <failOnMultipleWinDir>1</failOnMultipleWinDir>
    </offline>
    You can also refer t othe details at:
    http://technet.microsoft.com/en-us/library/hh824880.aspx
    Regards
    Wade Liu
    TechNet Community Support

Maybe you are looking for