Thread: Can't change client IP or it fails to start

Results 1 to 2 of 2
  1. #1 Can't change client IP or it fails to start 
    Banned
    Join Date
    Jan 2015
    Posts
    198
    Thanks given
    8
    Thanks received
    5
    Rep Power
    0
    I'm trying to make a constant in a different class called Config and have my server IP in there.

    I keep getting this.

    Code:
    java.net.UnknownHostException: bla bla blascape.ddns.net
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    	at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
    	at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
    	at java.net.InetAddress.getAllByName0(Unknown Source)
    	at java.net.InetAddress.getAllByName(Unknown Source)
    	at java.net.InetAddress.getAllByName(Unknown Source)
    	at java.net.InetAddress.getByName(Unknown Source)
    	at Jframe.<init>(Jframe.java:22)
    	at Client.main(Client.java:2486)
    Code:
    	public static void main(String args[]) {
    		try {
    			System.out.println(Config.clientName);
    			nodeID = 10;
    			portOff = 0;
    			setHighMem();
    			isMembers = true;
    			signlink.storeid = 32;
    			signlink.startpriv(InetAddress.getLocalHost());
    			instance = new Jframe(args);
    		} catch (Exception exception) {
    		}
    	}
    Code:
    	public Jframe(String args[]) {
    		super();
    		try {
    			signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    Code:
    public static final String SERVER_IP = "bla bla bla";
    Under public client()

    Code:
    server = Config.SERVER_IP;
    Reply With Quote  
     

  2. #2  
    Donator
    Smile Cow's Avatar
    Join Date
    Apr 2014
    Posts
    215
    Thanks given
    51
    Thanks received
    34
    Rep Power
    40
    The error is plain as day.. "bla bla bla" is not a valid hostname...
    My Service Thread: [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Can't change client IP?
    By iLeet in forum Help
    Replies: 1
    Last Post: 07-04-2012, 11:10 AM
  2. changing client ip
    By Shonx in forum Help
    Replies: 1
    Last Post: 04-03-2010, 10:11 PM
  3. Change clients ip
    By Jesse in forum Help
    Replies: 1
    Last Post: 07-10-2009, 06:31 AM
  4. help[508] Change client ip?
    By Mocro in forum Help
    Replies: 0
    Last Post: 05-31-2009, 06:02 PM
  5. changeing client ip?
    By CTucker in forum Tutorials
    Replies: 4
    Last Post: 01-26-2009, 06:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •