Find Address of Server

I would like to be able to find the address of a server on my local network.
I've been doinking around (specific local technical therm there) with a game idea, and in my thought process of designing the game I'd like to make the following happen in the implementation:
I or anyone present can get online to play the game (not a problem I can program sockets).
When a potential player comes on line, they would choose if they want to host the game or just participate, and if there are hosts already present, give them a list that are available to join.  Herein is my problem.  The server IP address would not be known at the time anyone comes online, and it could be any address covered in my local block 10.0.0.XXX or 192.168.0.XXX, well, except the router address.
In all the work I've done in the past, the server IP address has always been known.  Also in the examples I have from the net and from my books everything assumes you know the IP address of the server, that approach is not a problem and I've done it many times, but now I am looking for the basic idea of how do "discover a server on the network".
What I've thought so far is: use a bruit force type of algo where the client literally just checks everything in the local block using the protocol for the game.  Is that the way to do it using simple TCP/IP and Java or is there a more elegant way that I'm missing?
I am not looking for coding examples, but just the basic idea verification or approach... even a suggested google search would be appreciated.

Thank you for the response.  After checking my router and looking around a bit, I see the UDP block operations are disabled on my router, so I do not think I will be persuing that avenue, and realistically this is going to be me and my family and maybe a few friends sitting around the house with our laptops and somebody says: Hey, let's play XYZ game so the lookup server options is not a good scenario either.
It did give me a reality check though -- I realistically can expect to only have to check the first few local IP addresses for this type of implementation, so the bruit force approach will work ok on the scale I'm implementing.
Thank you for your input!

Similar Messages

  • Find Address of Server (link to Game Development OP)

    This question was posed here:
    Find Address of Server
    but linked here for those that do not check the game developer board.

    Thank you for the response.  After checking my router and looking around a bit, I see the UDP block operations are disabled on my router, so I do not think I will be persuing that avenue, and realistically this is going to be me and my family and maybe a few friends sitting around the house with our laptops and somebody says: Hey, let's play XYZ game so the lookup server options is not a good scenario either.
    It did give me a reality check though -- I realistically can expect to only have to check the first few local IP addresses for this type of implementation, so the bruit force approach will work ok on the scale I'm implementing.
    Thank you for your input!

  • How do i find the ftp server address information in business catalyst, adobe technical support says

    how do i find the ftp server address information in business catalyst, adobe technical support says mine are wrong. I haven't changed nothing and it used to connect. someone please meassge me, not too sure how to use a forum and do not know how to get catalyst support.

    Hi Michael,
    I think you are referring to the changes switching from regular FTP to SSH connection which is now required. 
    Please review the article below covering this recent update and the changes needed to establish your connection via (DW or FTP client).
    - http://forums.adobe.com/docs/DOC-2841
    Kind regards,
    -Sidney

  • Software does not find the Database server

    Hi all,
    We are going to move database from old server MSSQL 2005 Express to the MSSQL 2008 R2 STD. For test I backuped DB from old server then restored at the new one. For some reason the software does not find the new server.
    I checked everything as from the link described:
    http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx?Redirected=true
    Also at the new server we have another production DB that is running without any issues...
    System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected
    host has failed to respond 195.30.95.163:80
       at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
       at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at OptoWare.OrderEntry.OrderInterfaces.WebReferenceOWEdix.OWEdixService.OWEdix_GetStatus(String custID, String password, String countryCode)
       at OptoWare.OrderEntry.OrderInterfaces.EdixInterface.b(Object A_0, DoWorkEventArgs A_1)
    2014-03-31 16:54:58,924 [1] ERROR OptoWare.OrderEntry.Controls.Config.ServiceControl - Connetction to FI1-sv-prod014\mssqlserver failed.
    System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured
    to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at OptoWare.OrderEntry.Controls.Config.ServiceControl.i()

    It looks like the connection is getting refused because of your application configuration.
    Refer similar thread 
    http://forums.asp.net/t/1180127.aspx?A+connection+attempt+failed+because+the+connected+party+did+not+properly+respond+after+a+period+of+time+or+established+connection+failed+because+connected+host+has+failed+to+respond+
    -Prashanth

  • Lion Server: iOS 5 clients can't connect to Address Card Server

    I have set up shared accounts on the server for Calendar and Address Book (family) sharing. Although I can add and use the Address Book shared account on OS X Lion clients, I can't get this to work on iOS 5 clients (iPhone nor iPad). I keep on getting "CardDAV account verification failed".
    Calendar sharing works just fine on both OS X and iOS5 clients
    Let me briefly describe my setup and observations:
    Server:
    Running Lion Server 10.7.2 on Mac Mini (server)
    Using SSL connections with keys generated during set-up of the server
    Portforwarding in router (ao) for 8008 and 8843 (iCal and Address Book)
    Created  shared accounts on server for Calendar ("sharedcalendar") and Address Book ("sharedcontacts")
    In the DNS server I created services in my primary zone for "_caldavs._tcp." and "_carddavs._tcp." both on port 8443
    OS X Client (Calendar)
    Created additional CalDAV account in preferences (user "sharedcalendar")
    Left the server settings untouched (server path, port "auto" and using SSL but not Kerberos)
    Created in "sharedcalendar" different calendars and reminder lists for the family members which each can access from their OS X client
    This account is now set-up through Profile Manager (tried this with Address Book as well but didn't make any difference)
    iOS 5 Client (Calendar)
    Once tested on standalone and got this working I'm now using the Profile Manager to push the definition of the shared account to all clients
    Hostname with port 8443 (default)
    Left Principal URL blank since it was optional
    User "shared calendar" with the appropriate password
    Ticked "Use SSL"
    OS X client (Address Book)
    Created additional CardDAV account in preferences (user "sharedcontacts").
    Left the server settings untouched (port 443 using SSL)
    iOS 5 client (Address Book)
    In the settings add a CardDAV account (server, user "sharedcontacts", password, description).
    First error message "Cannot connect Using SSL. Do you want to try setting up the account without SSL?". When I press continue I get the error "CardDAV account verification failed"
    If I then save the account details still and edit the account I can access the "advanced settings". When I change to SSL I have tried port 0 (default value), 8443 (the one that's listed in the documentation) and 8843 (which is used by default if you try to set up the
    account in Profile Manager). All to no avail, including Profile Manager
    Observations:
    Lion Server app nicely lists both Calendar and Address Book Server as active (plus Profile Manager, File Server, Web server and Wiki server)
    When I access my server home page, Calendar is listed in addition to other services (Mail | Calendar | Change Password | Profile Manager) but not Address Book. Is this normal behaviour? i.e. can't Address Book entries be changed through a web interface?
    Address Book on OS X client uses 443 for SSL but does not require me to define port 8443 for secure iCal or Address Book server communications
    Lion Server Profile Manager specifies port 8843 as port for SSL communication. I only saw 8443 listed in documentation
    The response "can't connect .." or "account verification failed" happens very quick which make me think either the verification doesn't even leave the iPad or there is something wrong in the SSL connection
    Since iCal set-up works nicely using the same ports I am puzzled why it doesn't work for Address Book
    Your solutions or suggestions how to investigate are most welcome,
    Erik

    Thanks for joining the discussion.
    Although port 8443 is mosten quoted as correct port for CalDAV and CardDAV, port 8843 can be found both on Apple's website and other places:
    see Technical Note 1649 to find port 8443 listed for iCal and port 8843 for Address Book
    Mac OS X Lion Server for Dummies (sic) lists port 8843 on pages 236 and 238 but port 8443 in many other places
    when you want to push iCal and Address Book information with Profile Manager, Profile Manager lists port 8443 for iCal but port 8843 for Address Book as default:
    So I hope you understand I'm somewhat puzzled.
    I did get the Address Book working for my Lion desktops with the all the necessary certificates as far as I know, just not for the iOS devices (iPhone and IpPad). iCal sharing from Lion Server works fine on both Lion and iOS devices.

  • Could not find a PPPoE server problem.

    I have been running my G4 plugged into a netgear ethernet hub for quite some time to get online. I also have a wireless router connected to it on which I run my windows laptops. I never had a problem having them all online at one time. I didn't use my G4 for a few weeks, when I turned it back on and tried to get online, I got the "could not find a PPPoE server" message. If I unplug the ethernet cable from the hub and plug it directly to the DSL modem, it connects with no problem, plug it back into the hub and it won't connect. I swapped the hub for a Linksys 5 port ethernet 10/100 switch. Same thing happens and I get the same message, but it will not get online if any of the PCs are online, if I shut the PCs down then the mac gets online, but if I have the mac online then the PCs will not connect. I have been on the phone with the drones from earthlink and they have been useless. If you tell them that you are running any kind of routing device the will not help you at all. I am at a loss as to how to get around this, like I said, it was all working fine before. I am not sure if the problem is at my end or if earthlink did something at their end. Any help would be greatly appreciated.
    G4 Mac OS X (10.4.7) dual 533 MHz
    G4   Mac OS X (10.4.7)  

    Do you need to "spoof" the MAC address of the router or hub? some ISPs actually read and register the hardware MAC address of the first two devices downlinked. Modem and router, modem and G4, etc.
    I stopped using a hub once switches got inexpensive and routers came with switch capability. Now have an all in one modem + router/switch which simplifies setup, wires, and only one device to worry about (but have backup modem and router etc from before in case anything should happen).
    Possible that something happened. Or that your router needs to be reset. Or that a storm did something while you were gone, though you seem to have swapped devices enough to rule that part out. Or a bad cat5 cable that a mouse or cat gnawed on.
    My guess is set the Linksys to the same MAC address of the hub you were using or call Earthlink again (hard I know) and have them re-authenticate the new router's MAC address.
    Do you have a surge protector in front of your modem? and again an RJ45 filter before it goes out to your router or G4? I put all my equipment on APC UPS and going through surge and line protection to protect ethernet ports and equipment.

  • Finding proper smtp server for outgoing mail

    I added my school's e-mail account and i can receive mail just fine. I'm having trouble finding the right server name to send mail from that school address.
    Is there any general rule for what a server should be called, or is it specific and i need to find out from the school?

    There are not har and fast rules about naming of SMTP servers. Naming convention usually results in 'mail.yourdomain.com' or 'smtp.yourdomain.com' but the naming is just a preference of whoever set up the server. You generally need to ask your mail server administrator for the name and/or access information. There are some definite caveats that are likely going to affect you however --
    - Most mail admins do not allow SMTP access to their servers from off their network unless they've configured/enabled SMTP Authentication or some other way of verifying that you're really who you claim to be. Again, your mail system admin can let you know if they support this and how to configure Mail.
    - It is almost always acceptable to use the SMTP server of your ISP (comcast, bellsouth, etc) regardless of the POP/IMAP account you are checking. You do not need to use your @comcast or @bellsouth email address to send through those servers.
    - When in doubt about server settings, mail server admins would generally be happy with you contacting your local helpdesk or admins to be sure you're using the correct settings.

  • HT1338 HOW CAN I FIND OUT WHICH SERVER MY MAC IS USING?

    HOW CAN I FIND OUT WHICH SERVER MY MAC IS USING, KEEP GETTING MICROSOFT SQL SERVER ERRORS
    WHEN TYPING IN ADDRESS'S?

    If your computer is tied to a network, then there is a way to check. Go to System Preferences, and click Accounts. unlock Admin
    then you can click Login Options.
    under that, Network Account Server. This should show you what server your computer is tied to. If you aren't in the tech department, you could try asking them.

  • Belkin wireless router connected but browser could not find the host server

    my new roommate has a belkin n wireless router connected to a cable modem which functions perfectly on her pc laptop. i am trying to connect my MacBook Pro to the router using her WEP password. this all works fine and my System Preferences/Network/Status shows that AirPort is connected with full strength, but i cannot load any web pages (i have not yet been able to load any pages at all using this router). the page load error reads "Firefox can't find the server at www.cnn.com" and "The browser could not find the host server for the provided address".
    I spoke with Belkin support and they say the router is functioning properly, that is a problem with my mac.
    When I go to Network Diagnostics, the status shows all green and says "This computer's Internet connection appears to be operating normally. Are you sure you want to use Network Diagnostics?
    Could this be a firewall issue? A couple people have suggested that, but I'm not sure how to fix that.
    I have tried rebooting the router and cable modem, rebooting the mac, etc.
    any ideas on what settings i may need to investigate??
    thank you!
    Message was edited by: photoeyeseattle

    photoeyeseattle wrote:
    how do I know if the router has useful DNS servers? i am looking at the settings of the router on the pc that is online.
    Somewhere in the settings of the router should be the DNS servers that it is using. Since the router is offering via DHCP to do DNS translation for your Mac, it must have useful DNS servers listed.
    There are "public" DNS servers. I have no experience with it, but this Web page describes one from Google:
    http://code.google.com/speed/public-dns/
    Supposedly Google has a DNS server at IP addresses 8.8.8.8 and 8.8.4.4 that you might try. Since the DNS server setting on your Mac is grayed out, as a test you might try noting the setting in the "TCP/IP" tab of your AirPort connection item of the Network panel of System Preferences. Then switch from "Using DHCP" to "Manually", fill in the values you just noted, switch to the DNS tab and fill in Google's DNS addresses, and see if things work better.
    do you have any other suggestions of where to seek help???
    Perhaps a Belkin discussion group?

  • Internet Connect Could not find a PPPoE server

    We just bought the new MacBook Pro and set it all up ok and yesterday bought a D-Link Wireless ADSL router.
    We can get onto the D-Link network fine and full signal is shown but when we try to connect the error "Internet Connect: Could not find a PPPoE server" comes up.
    Does anyone know what the problem is?
    I looked at a couple of other threads with similar tpics but none of them seemed to help me :S
    Do I just need to contact BT about it as they are our server or is it something setup wrongly?
    I hope you can help me
    Lizi

    ok, thanks
    I've done that but it still doesn't work
    whats VPN? and do I have to fill in that first(ie. Server address, not that i know what it would be, Account name and Password)? and PTTP or L2TP?
    this s totally conusing me...

  • Network Connection - could not find a PPPoE server

    This question is different from other similar ones I've read.
      I have a Windows box that I use every day, connected to DSL by ethernet to a D-Link modem/router. I frequently connect/disconnect my MacBook Pro 10.6.8 and, until recently, all was well. It would be online as soon as it booted up. Now, while my Windows machine still gets online fine, MacBook says my ethernet is connected, but I can't get online. My DHCP is fine, but when I click the connect button for PPPoE, I get the message "Network Connection - could not find a PPPoE server". I didn't look but I'm assuming it was using both DHCP and PPPoE when it was working properly.
      Took it to the shop and as soon as they plugged it in, it was online, with both the DHCP and PPPoE working.
      My ISP says it must be a driver issue for PPPoE, something to do with the configuration. So 2 shops say they can only fix it by coming to my home, instead of me taking it in to them. Are they correct, or how can I fix it myself, bearing in mind that I'm fairly new with this?

    Hi Grant,
    Got a different person at my ISP today, she says I have a dynamic IP address, so both my computers only need DHCP. We walked through my Windows machine network screen and it is definitely set up with just DHCP (just like the Mac). But she couldn't tell me why Windows was working and Mac wasn't. Which makes me wonder why the Apple shop told me to click on connect PPPoE!
    She said when I took my Mac to the shop and both DHCP and PPPoE were showing as active, only the DHCP was needed and actually doing anything. And she couldn't tell me why I couldn't just take my Mac plus the router into the shop and get it set up there.
    My UN and PW were 'admin', and I changed them long ago. Your instructions were identical to the router manual, but she couldn't tell me how to change them back to my chosen names if I followed those instructions. She also said a new router might fix the problem.
    Everybody seems to have different ideas (in addition to the 2 sales pitches), and I'll admit that I'm concerned that if I re-set the router it might mess up Windows so it doesn't work either. So I'm frozen!

  • Finding AP DHCP Server

    Is there a way to find the dhcp server the AP gets dhcp from? lightweight AP with wlc 4402
    I'm unable to find where it is on our network

    Did someone bring in a router from home that hands out dhcp? What you can try to do is obtain an ip address and then look at the default gateway and find the mac address by looking at the arp table. You can then do a show mac-address-table | in and then keep tracing it to the other switches until you find where it is originating from.
    You can also setup dhcp snooping and shut that down.

  • Upload iphone contact address to at&t address book server

    I have voyaged the web (at&t which is always useless) in search of a possible workaround. I know at&t has no intention on addressing this. It might be considered a too helpful customer service feature and attract new business or retain current business.
    This question is opposite of newbies "how do I transfer TO my phone".
    I actually see a serious feature need to upload my contact data to the (empty) address book created on the At&t address book server.
    Any non-Iphone has the ability as its used in similar fashion as the itunes backup of your contacts.
    However, this database also provides the opportunity to receive your phone bill-listed as contact names, replacing the phone number.
    As a business user with may incoming calls, I see a real benefit in being able to recall data on the previous months bill (which would be a call record now) to find the date, time of the conversation.
    As I indicted, At&t has no interest (in basically flipping the on-switch) to allow me to upload. **boy some companies pay top dollar for your contact lists and I can't give mine for free to At&t.
    Anybody know of a hack program which will identify itself to the online software upload program of the At&t server which will allow me to send my list.
    Any attempt to try this as a "normal" method will result in rejection because of their uploader program. Even after the requirement of setting up an account from your normal billing area.

    I have exactly the same problem. And my country (Chile) does not show up in the country list. I think this is the reason why the addresses do not show in iPhone. I suppose your country is Uruguay, so you have the same issue.
    This is ridiculous. For Apple there are only 3 countries in Latam, but they lounched iPhone all over the place!!
    Please post a report in http://www.apple.com/feedback/iphone.html
    Maybe they hear us and correct this issue. It should be so simple.

  • Is there a clear walkthrough on setting up address book server on Lion Server?

    I just got a Mac Mini Server with OSX Lion Server on it, and I want to set up address book server and calendar server, but I can't find any instructions on setting it up.

    Maybe someone in the Lion Server forum would know?
    https://discussions.apple.com/community/servers_enterprise_software/mac_os_x_lio n_server
    Regards,
    Colin R.

  • I am constantly receiving an error message that says "Could not find a PPPoE Server." My wireless internet connection seems to working fine, I'm not having any issues. How do I get rid of this error message?

    A few weeks ago my computer had lost the connection to the wireless internet. I set it up again and was able to connect to the internet, however since then I've been receiving an error message "Could not find a PPPoE Server." I went back into Preferences and unchecked the PPPoE server option but the error message still pops up.
    Any idea how to fix it?

    In the Network pane of System Prefences, do you have duplicate services on the left column? When you "set it up again", you might have duplicated a service and both (the good working one and the previous that lost connection) might be trying to connect at the same time.

Maybe you are looking for

  • Code for calculating variance between plan and actual in Co module

    Hi Abbapers, I have to develop a  2 fresh report : One for calculating the variance for the Plan/Actual in controlling and second for sales variance for the month Jan to Dec . I need your help as I have to complete this reports in this week . Its Bit

  • After upgrading to Photos, how can I work on a Book Project from another apple device?

    After upgrading to Photos, how can I work on a Book Project from another apple device?

  • Custom fields in address book merged in pages document

    I viewed this Paragraph below from the following link on the Apple Site http://www.apple.com/business/profiles/iwork/sara.html As an administrative tool, she says, "All the documents we create with Pages - contracts, correspondence, receipts - are se

  • Can't add musics to Iphone 4

    Hi, since i've updated my iTunes to 11.0.4 i just can't add musics to my iphone 4. I can add everything else, and that makes me think if something changed when it comes to adding music to the iphone. With my ipad i don't have this problem, i add musi

  • Reporting Problems Causes Problems

    Hi, I'm a newcomer to Macs (have an 8 core Mac Pro) and have two possible related problems: Whenever an application crashes it says "Report to Apple". When I click "Report..." it says "Could not connect". I am behind an HTTP proxy and have a .PAC lis