Whats socket and port ??

Hi,
iam new to sockets...
i dont know whats the difference between sockets and ports

http://java.sun.com/docs/books/tutorial/networking/sockets/definition.html

Similar Messages

  • Sockets and ports - routing messages between machines? helpppp!

    Hi,
    I'm new to java and am hoping someone out there can help me, hoping this is an ok place to post this:
    If all you need to create a connection is an IP address and a port number, using streams...
    Can you route messages from A to B then from B to C, where A looks up C through B having a hash table which contains C's IP address and port number?
    And how in the first instance does B know about A's IP address? All the examples I've seen the IP address is hard coded?
    Thanks in advance!

    I'm not sure what you are really trying to do... Can you explain in more concrete terms? Are you writing a chat client + server or something like that?

  • I am behind a Cisco PIX Firewall. What addresses and ports do I need to permit through to allow Firefox updates?

    I want to be able to upgrade my Firefox installations that are located behind a Cisco PIX Firewall. What are the TCP/IP addresses and ports required to be opened for updating to occur?

    This is less likely to be a firefox problem, as it appears something bad has happened to your network. Can you access the internet with other programs? Try email/ IRC/ Skype or even updating your computer.
    What operating system are you using?
    Ian.

  • What protocol and port number(s) does BEx Analyzer use?

    I'm trying to find out if it's possible to packet shape BEx traffic to give it a higher priority. Is BEx using the same protocol and ports as the SAP GUI?

    Hi,
    Download Tcpview from the following link and see processes and  ports used by SAP GUI and Bex
    http://download.sysinternals.com/Files/TcpView.zip
    In addition to tcpview you may install sniffer software to your computer to capture and analysis network packets.
    Regards.

  • Sockets and ports - how to route through another machine?

    Hi,
    I'm hoping someone out there can help me:
    If all you need to create a connection is an IP address and a port number, using streams...
    Can you route messages from A to B then from B to C, where A looks up C through B having a hash table which contains C's IP address and port number?
    And how in the first instance does B know about A's IP address? All the examples I've seen the IP address is hard coded?
    Thanks in advance!

    Ok, so i mean I know this is possible, but I have some users who need to communicate with each other, sorta a message passing approach but with TCP rather than using JMS (time to do this in is v limited).
    They need to talk to a middle computer, whos job it is to lookup an appropriate partner to talk to, but:
    how do i go about getting the IP address in the first place so that they know who to talk to?
    Before communication can take place does there have to be some agreement in which they exchange IP addresses and port numbers?

  • Chatserver socket and port problem

    hi,all.
    i write a chat server use java socket. now is more than 2000 users connect to my server. but too many user make the chat message speed slow. now my server is open one port to listen the client connection. who can tell me if i change my server to open multi port to listen the client connection will rather than open one port. or it is same effect.
    please give me some advice. thanks.
    my homepage is:http://www.easyfad.com

    my server system resource is no problem. Have you timed the bus on your machine?
    18% of memory means physical or total. If total is that 18% hitting the hard drive?
    What is your actual network speed? A 100m ethernet has a theoretical speed of about 12 meg per second, in practice you will never get even close to that. A normal ftp transfer might only get 500k per second. And networks can be significantly overloaded.
    What are the configuration parameters for your IP stack? It might be configured incorrectly for the type of traffic and quality of traffic that you are getting.
    The above are all possible things that can affect performance. And there are probably more. Standard OS tools are NOT the best way to measure platform performance. They can often provide misleading numbers, even when one knows what the numbers really mean.
    if i use multi port to create socket connection,
    if it will help to increase message sending speed ? Like I said I can't see how. Something is causing a slowdown. Your NIC can only process so much traffic. If your NIC was the bottle neck and you had two NICs then that would help. But if it was me I really wouldn't try a two NIC solution until I had exhausted every other possibility. First because it is unlikely to the be bottleneck and two because setting up a 2 NIC (or more) server is not plug and go solution.

  • Sockets and Ports and DataInputStreams

    I think this is just a basic TCP/IP networking question: When I open a socket connection to a remote ip address/port, what port am i receiving data on via my DataInputStream? Is it the same port I opened the remote connection on, 80, or what?
    thanks,
    Abraham

    int answer = yourSocket.getLocalPort();

  • About socket and port problem

    hi,all.
    i write a chat server use java socket. now is more than 2000 users connect to my server. but too many user make the chat message speed slow. now my server is open one port to listen the client connection. who can tell me if i change my server to open multi port to listen the client connection will rather than open one port. or it is same effect.
    please give me some advice. thanks.

    Maybe your machine is not strong enough to serve that many users at a time anyway. In that case using several ports won't help.

  • Socket and PORT problem

    I am new to socket programming. Is there a command in UNIX to see which ports are not occupied?
    Since I have problem right now in my program to close the sockets, will they be closed automatically after I interrupt the program, should I close it manually from the command line?
    TIA.
    mmc

    When you create a Socket, you can either bind to port 0 (which binds to the first available port) or to any other valid Port number. There is no Java-based method for geting the port numbers in-use or available. When your program terminates, the sockets will terminate as well, but the port may not be available for use for a few seconds. This allows for the system to be reset.

  • What urls and ports need to be allowed through our corporate proxy firewall?

    We have been paying for Creative Cloud for teams for over a month, but are unable to install any applications. Our 'Ironport' proxy keeps blocking the downloads.
    We have asked our security team to allow the following urls but to no avail!!
    ccmdl.adobe.com:80
    swupmf.adobe.com:80
    swupdl.adobe.com:80
    Are there any other addresses or ports that should be allowed?
    Thanks.

    Hi,
    For the Creative cloud you should put the following port combinations in the whitelist
    cmdls.adobe.com:443
    im s-na1.adobelogin.com:443
    na1r.services.adobe.com:443
    prod-rel-ffc-ccm.oobesaas.adobe.com:443
    lm .licenses.adobe.com :443
    You can also see the craetive cloud deployment guide as well for more information. Here is the link
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC T_IT_Deployment_Guide.pdf
    Thanks
    Kapil

  • What are the ports required for the Audio, Video and A/V conferencing when the following end points are enabled for QoS in Lync 2013 server?

    Hi All,
    What are the ports required for the Audio, Video and A/V conferencing when the following clients are enabled for QoS in Lync 2013 server?
    Client Type
    Port range  and Protocol required for Audio
    Port range and Protocol required for
    Video
    Port range and Protocol required for
    A/Vconferencing
    Windows Desktop   Client
    Windows mobile App
    Iphone
    Ipad
    Andriod phone
    Andriod Tablet
    MAC desktop client
    Please advise. Many Thanks.

    Out of the box, 1024-65535 for all of the client ports.  :) 
    https://technet.microsoft.com/en-us/library/gg398833.aspx
    You'll want to tune your client ports a bit
    https://technet.microsoft.com/en-us/library/jj204760.aspx as seen here, and then the client ports would use those ranges which is easier to set QoS markings.  I'm not sure the mobile clients respect that setting.
    Elan's got the best writeup for Windows clients here:
    http://www.shudnow.net/2013/02/16/enabling-qos-for-lync-server-2013-and-various-clients-part-1/
    However, the marking of the packets is the tricky part.  Windows can do it via Group Policy, but for the other clients you'll need to have the network specifically prioritize ports regardless of DSCP markings.  You have to do it based on ports
    as the traffic could be peer to peer.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What is the port for on the left of the w500 between the eathernet and video monitor connection?

    There is a port on the left side of the w500 that is next to the video monitor connector. It looks like an HDMI port but is square on one side. So I do not think it is hdmi. What is that port called and what is it for?
    I want to hook up the computer to a tv for the kids to watch netflix.

    Hello mate,
    It's a DisplayPort (that's its name) It's like an HDMI port but it's different
    All you need to plug your tv is a cable DisplayPort to HDMI and it's all good. You normally won't have sound because the port is for video only. You will need to plug a cable from your audio out to your tv.
    You can also check there for some tips : http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/No-audio-from-TV-when-connected-to-a-laptop...
    Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it.
    ThinkPad T510 4313-CTO Windows 8 x64 - Intel Core i7-620M - NVIDIA NVS 3100M - 8GB RAM - 240GB SSD- Intel Centrino Ultimate-N 6300 - Gobi 2000.
    ThinkPad Helix 3697-CTO Windows 8.1 x64 - Intel Core i7-3667U - Intel HD Graphics 4000 - 8GB RAM- 256GB SSD - Intel Centrino Advanced-N 6205 - Ericsson C5621gw

  • Error establishing socket to host and port: EPM11:1433

    Hi Planning Experts,
    I am trying to configure EPM 11.1.2.1 (Planning)
    RDBMS: SQL server 2005 (Express Edition)
    OS: 2008 R2 x64
    i am getting error after providing RDBMS credentials "error establishing socket to host and port: EPM11:1433 Reson: connection refused: connect"
    Please help....
    Regards
    Kumar

    You may need to enable tcp/ip
    SQL Server Express listens on local named pipes and shared memory. With a default installation, you cannot remotely connect to SQL Server Express. You will need to enable TCP/IP and check if the firewall is enabled.
    To enable TCP/IP:
    From the Start menu, choose All Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
    Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager.
    Expand SQL Server 2005 Network Configuration, and then click Protocols for InstanceName.
    In the list of protocols, right-click the protocol you want to enable, and then click Enable.
    The icon for the protocol will change to show that the protocol is enabled.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Installed 9iAS, but what is the URL? and Port?

    How do I know what the URL is?
    Is there a specific place where I can look for it? I remember it didn't ask for any port number or anything.
    I got a screen explaining the following:
    1) 9iAS portal home page
    http://<machine>:port/pls/<portal_dad>
    (how do i know what port is being used?)
    2)Login server home page
    http://<machine>:port/pls/<sso_dad>
    (how do I know what port is being used?)
    3) Gateway settings page
    http://<machine>:port/pls/admin_/gateway.htm
    (how do I know what port is being used?)
    Thanks
    null

    Are you doing 9iAS 1.0.2.2 install? And on which platform? If this is 1.0.2.2 install, you may see a file ports.ini in Oracle_Home/Apache/Apache. See what is the port number specified for the variable, s_apachePortNonSSL. This will be your default Apache port number in solaris platforms. In Windows platforms, you can try with the port number defined for s_apachePortNonSSL variable.
    Portal is also making use of Apache port number.
    One more thing is, if the default ports, 7777(solaris) or 80(Windows) are in use, installer won't ask you for any other port number to specify, but it will pickup any other free value according to the port picking criteria defined in docs.

  • Whats the difference between sending messages via socket and MQs?

    Whats the difference between sending messages via socket and MQs?

    Soph wrote:
    Whats the difference between sending messages via socket and MQs?With JMS (and the like) your application uses a socket to connect to a central server called a "*Message Broker*". Over this connection it can send or receive messages.
    A Message Broker is somewhat analogous to a database server. Multiple clients connect to it to exchange messages. As with a database a client first establishes a connection, then requests specific facilities like subscriptions.
    It creates a strong decoupling between sender and receiver and handles stuff like allowing multiple receivers for the same message, queuing of messages for applications not currently running and so on.
    (And don't worry, you can get perfectly good message brokers for free such as openMQ and activeMQ.)

Maybe you are looking for

  • Unbalanced BW hierarchies in Webi

    Hi all. I have an issue with interpreting unbalanced hierachies from BW in WebI. The issue occurs when importing a SAP Bex Query, containing an Infoobject bearing a hierarchy - in this case 0ORGUNIT. The problem occurs when trying to show 0EMPLOYEE p

  • APEX 4.0 and Oracle XE

    Hello When APEX 4.0 is finally released, will it be possible to install into an Oracle XE database as previous versions? I am interested in providing a Client demo of some of the Web2.0 features using their own network. Regards Ade

  • My ipod touch 5th generation won't connect to itunes or my computer.

    So i was syncing my ipod touch to itunes, however in the middle of the syncing itunes froze. So i closed itunes and now when i plug my ipod touch back in it wont recognize it or connect to my computer at all. And if i just plug my charger in, it'll p

  • Offline Interactive Form Upload for creating Business Transaction

    Hi All, I am using CRM Web Request for creating Business Transaction through Offline Interactive Adobe Form. For that i have done PDF upload coding and then converting the PDF form to XML format. Now the XML format of form is converted to string from

  • Auto_start_on_new_cluster and booting node

    hi, OS: Solaris 10 11/06 Soft: Sun Cluster 3.1u4 (120500-12, 120489-04) 1. i have a failover group. it works well. 2. i have false in "Auto_start_on_new_cluster" # scrgadm -pvv | grep Auto (myrg) Res Group Auto_start_on_new_cluster: False 3. make gro